gcc/testsuite/gcc.dg/torture/pr60891.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-additional-options "-fno-tree-ch -fno-tree-cselim -fno-tree-dominator-opts" } */ |
| 3 | |
| 4 | int a, b, c, d, e, f; |
| 5 | |
| 6 | void foo (int x) |
| 7 | { |
| 8 | for (;;) |
| 9 | { |
| 10 | int g = c; |
| 11 | if (x) |
| 12 | { |
| 13 | if (e) |
| 14 | while (a) |
| 15 | --f; |
| 16 | } |
| 17 | for (b = 5; b; b--) |
| 18 | { |
| 19 | } |
| 20 | if (!g) |
| 21 | x = 0; |
| 22 | } |
| 23 | } |