gcc/testsuite/gcc.dg/pr104700-2.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -fno-tree-ccp -fno-tree-dce -fno-tree-vrp" } */ |
| 3 | |
| 4 | int a, b; |
| 5 | int main() { |
| 6 | int c = 2, d, e = 0; |
| 7 | if (a) |
| 8 | e = 2; |
| 9 | int f, g = -(1L | (e && f && f & e)); |
| 10 | if (g) |
| 11 | L: |
| 12 | g = c; |
| 13 | c = 0; |
| 14 | d = e * g; |
| 15 | if (d) |
| 16 | goto L; |
| 17 | while (e) { |
| 18 | int i = (a && b) * i; |
| 19 | } |
| 20 | return 0; |
| 21 | } |