gcc/testsuite/gcc.dg/torture/pr105337.c
raw| 1 | /* { dg-do run } */ |
| 2 | |
| 3 | __attribute__((noipa)) void |
| 4 | bar (int x) |
| 5 | { |
| 6 | (void) x; |
| 7 | } |
| 8 | |
| 9 | int a; |
| 10 | |
| 11 | int |
| 12 | foo (void) |
| 13 | { |
| 14 | int b, c; |
| 15 | for (b = 0; b < 3; b++) |
| 16 | { |
| 17 | if (!a) |
| 18 | break; |
| 19 | c--; |
| 20 | bar (c); |
| 21 | } |
| 22 | return b; |
| 23 | } |
| 24 | |
| 25 | int |
| 26 | main () |
| 27 | { |
| 28 | if (foo ()) |
| 29 | __builtin_abort (); |
| 30 | return 0; |
| 31 | } |