gcc/testsuite/gcc.dg/torture/pr107833.c
raw| 1 | /* { dg-do run } */ |
| 2 | |
| 3 | int a, b[1] = { 0 }, c, *d = b, e, *f, g; |
| 4 | |
| 5 | __attribute__((noipa)) int |
| 6 | foo (const char *x) |
| 7 | { |
| 8 | (void) x; |
| 9 | return 0; |
| 10 | } |
| 11 | |
| 12 | int |
| 13 | main () |
| 14 | { |
| 15 | for (int h = 0; a < 2; a++) |
| 16 | { |
| 17 | int i; |
| 18 | for (g = 0; g < 2; g++) |
| 19 | if (a < h) |
| 20 | { |
| 21 | e = i % 2; |
| 22 | c = *f; |
| 23 | } |
| 24 | for (h = 0; h < 3; h++) |
| 25 | { |
| 26 | if (d) |
| 27 | break; |
| 28 | i--; |
| 29 | foo ("0"); |
| 30 | } |
| 31 | } |
| 32 | return 0; |
| 33 | } |