gcc/testsuite/gcc.dg/torture/pr121370.c
raw| 1 | /* { dg-do run } */ |
| 2 | /* { dg-require-effective-target int32plus } */ |
| 3 | |
| 4 | int a; |
| 5 | int main() |
| 6 | { |
| 7 | int c = -2147483647; |
| 8 | int d = -2147483647; |
| 9 | int e = 2147483647; |
| 10 | if (0) |
| 11 | f: |
| 12 | e = d + e - 2; |
| 13 | g: |
| 14 | if (d - c - e > 0) { |
| 15 | a = -c; |
| 16 | if (a + d) { |
| 17 | d = 1; |
| 18 | goto g; |
| 19 | } |
| 20 | return 0; |
| 21 | } |
| 22 | if (e) |
| 23 | goto f; |
| 24 | return 0; |
| 25 | } |