cmdline:-std=c++11
| 1 | // cmdline:-std=c++11 |
| 2 | int 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected