gcc/testsuite/gcc.dg/torture/pr116343.c
raw| 1 | // { dg-additional-options "-fschedule-insns -fno-thread-jumps -fno-dce" } |
| 2 | /* { dg-require-effective-target scheduling } */ |
| 3 | |
| 4 | int a, b, c; |
| 5 | volatile int d; |
| 6 | int e(int f, int g) { return g > 1 ? 1 : f >> g; } |
| 7 | int main() { |
| 8 | int *i = &a; |
| 9 | long j[1]; |
| 10 | if (a) |
| 11 | while (1) { |
| 12 | a ^= 1; |
| 13 | if (*i) |
| 14 | while (1) |
| 15 | ; |
| 16 | b = c && e((d, 1) >= 1, j[0]); |
| 17 | } |
| 18 | return 0; |
| 19 | } |