MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / main

Function main

tests/SwitchTest.cpp:4–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2const unsigned short FOO = FOO_BASE + 1;
3
4int main()
5{
6 int x;
7
8 switch(x) {
9 case FOO: return 1;
10 }
11
12 switch(int y = 1) {
13 case FOO: return 1;
14 }
15
16 switch(int y = 1; y++) {
17 case FOO: return 1;
18 }
19}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected