gcc/testsuite/gcc.dg/torture/pr110176.c
raw| 1 | /* { dg-do run } */ |
| 2 | |
| 3 | int f(_Bool t) |
| 4 | { |
| 5 | int tt = t; |
| 6 | unsigned x = -1; |
| 7 | int xx = x; |
| 8 | return xx <= tt; |
| 9 | } |
| 10 | |
| 11 | int a, b; |
| 12 | void c() {} |
| 13 | __attribute__((noipa)) |
| 14 | void h() {__builtin_abort();} |
| 15 | int d() { |
| 16 | unsigned f[1]; |
| 17 | int i; |
| 18 | if (a) |
| 19 | goto h; |
| 20 | f[0] = -1; |
| 21 | while (1) { |
| 22 | c(); |
| 23 | for (; a < 1; a++) { |
| 24 | if (0) { |
| 25 | j: |
| 26 | continue; |
| 27 | } |
| 28 | i = f[0]; |
| 29 | if (a) |
| 30 | break; |
| 31 | b = i >= (b == 0); |
| 32 | } |
| 33 | if (!b) { |
| 34 | if (0) { |
| 35 | h: |
| 36 | goto j; |
| 37 | } |
| 38 | return 0; |
| 39 | } |
| 40 | h(); |
| 41 | } |
| 42 | } |
| 43 | int main() { |
| 44 | d(); |
| 45 | return 0; |
| 46 | } |