gcc/testsuite/gcc.dg/pr65321.c
raw| 1 | /* PR rtl-optimization/65321 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-O3 -g" } */ |
| 4 | |
| 5 | int a, b, c, d, e; |
| 6 | |
| 7 | int |
| 8 | foo (void) |
| 9 | { |
| 10 | int h; |
| 11 | char i; |
| 12 | for (; c > 0;) |
| 13 | { |
| 14 | for (d = 0; d < 2; d++) |
| 15 | { |
| 16 | i = 1 << d; |
| 17 | if (i - a) |
| 18 | { |
| 19 | e = b = 0; |
| 20 | for (; c; c--) |
| 21 | d = 127; |
| 22 | } |
| 23 | } |
| 24 | h = ~d; |
| 25 | if (h > c) |
| 26 | for (;;) |
| 27 | ; |
| 28 | return 0; |
| 29 | } |
| 30 | return 0; |
| 31 | } |