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

Function main

tests/Issue45Example.cpp:1–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected