gcc/testsuite/gcc.dg/torture/pr118552.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-additional-options "-fno-tree-ch -fno-tree-ccp -fno-tree-fre" } */ |
| 3 | |
| 4 | volatile int a; |
| 5 | int b, c, d, e; |
| 6 | int main() { |
| 7 | int f = 1, g = 1; |
| 8 | h: |
| 9 | if (!d) |
| 10 | ; |
| 11 | else { |
| 12 | int i = 1; |
| 13 | j: |
| 14 | e = 0; |
| 15 | for (; e < 3; e++) { |
| 16 | if (e) |
| 17 | for (; g < 2; g++) { |
| 18 | if (c) |
| 19 | return 0; |
| 20 | if (f) |
| 21 | goto j; |
| 22 | } |
| 23 | a; |
| 24 | if (i) |
| 25 | continue; |
| 26 | f = i = 0; |
| 27 | } |
| 28 | } |
| 29 | f = 2; |
| 30 | b++; |
| 31 | if (c) |
| 32 | goto h; |
| 33 | return 0; |
| 34 | } |