gcc/testsuite/gcc.dg/pr105458.c
raw| 1 | /* PR tree-optimization/105458 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-O1 -fexpensive-optimizations -fno-tree-dominator-opts " } */ |
| 4 | |
| 5 | void |
| 6 | yj (int j4) |
| 7 | { |
| 8 | int t3; |
| 9 | |
| 10 | for (t3 = 0; t3 < 6; ++t3) |
| 11 | { |
| 12 | short int v4 = t3; |
| 13 | |
| 14 | if (v4 == j4 || v4 > t3) |
| 15 | for (;;) |
| 16 | { |
| 17 | } |
| 18 | } |
| 19 | } |
| 20 |