gcc/testsuite/gcc.dg/torture/pr118569.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, f, g; |
| 6 | int main() { |
| 7 | int i = 2, j = 1; |
| 8 | k: |
| 9 | if (!e) |
| 10 | ; |
| 11 | else { |
| 12 | short l = 1; |
| 13 | if (0) |
| 14 | m: |
| 15 | d = g; |
| 16 | f = 0; |
| 17 | for (; f < 2; f++) { |
| 18 | if (f) |
| 19 | for (; j < 2; j++) |
| 20 | if (i) |
| 21 | goto m; |
| 22 | a; |
| 23 | if (l) |
| 24 | continue; |
| 25 | i = 0; |
| 26 | while (c) |
| 27 | l++; |
| 28 | } |
| 29 | g = 0; |
| 30 | } |
| 31 | if (b) { |
| 32 | i = 1; |
| 33 | goto k; |
| 34 | } |
| 35 | return 0; |
| 36 | } |