gcc/testsuite/gcc.dg/pr106198.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O3" } */ |
| 3 | |
| 4 | int printf(const char *, ...); |
| 5 | long a; |
| 6 | int b; |
| 7 | volatile int c; |
| 8 | int main() { |
| 9 | long e = a; |
| 10 | int f = a; |
| 11 | L: |
| 12 | if (b > 0) { |
| 13 | printf("0"); |
| 14 | goto L; |
| 15 | } |
| 16 | if (f) { |
| 17 | printf("%ld", (long)b); |
| 18 | goto L; |
| 19 | } |
| 20 | e >= b && c; |
| 21 | return 0; |
| 22 | } |