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

Function main

tests/Issue45Example11.cpp:2–29  ·  view source on GitHub ↗

cmdline:-std=c++11

Source from the content-addressed store, hash-verified

1// cmdline:-std=c++11
2int main()
3{
4 int x = 0;
5
6 for(; x < 20; ++x) {
7 x += x;
8 }
9
10 for(int i=0; x < 20; ++x) {
11 x += i;
12 }
13
14 for(int i = 0, y=2, t=4, o=5; i < 20; ++i) {
15 x += i;
16 }
17
18 for(int *i = &x, *y=&x; i ; ++i) {
19 x += *i;
20 }
21
22 for(;;);
23
24
25 char data[5]{};
26 for(auto& x : data) {
27 x = 2;
28 }
29}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected