gcc/testsuite/gcc.dg/pr115149.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O3 -fno-inline -fno-tree-vrp -fno-ipa-sra -fno-tree-dce -fno-tree-ch" } */ |
| 3 | |
| 4 | int a, c, e, f, g, h[1], i; |
| 5 | static int j(int b) { return 0; } |
| 6 | static void k(int d) {} |
| 7 | int main() |
| 8 | { |
| 9 | if (h[0]) |
| 10 | while (1) { |
| 11 | k(f && j(i && (h[g] = e))); |
| 12 | while (a) |
| 13 | c ^= 1; |
| 14 | } |
| 15 | return 0; |
| 16 | } |