gcc/testsuite/gcc.dg/torture/pr112113.c
raw| 1 | /* { dg-do run } */ |
| 2 | /* The -Waggressive-loop-optimizations diagnostic is spurious, missed |
| 3 | constant propagation after final value replacement. */ |
| 4 | /* { dg-additional-options "-Wno-aggressive-loop-optimizations -fsplit-loops" } */ |
| 5 | |
| 6 | volatile int a; |
| 7 | int main() |
| 8 | { |
| 9 | for (int b = 0; b < 33; b += 3) { |
| 10 | if (b > 31) |
| 11 | a++; |
| 12 | } |
| 13 | if (a != 0) |
| 14 | __builtin_abort(); |
| 15 | return 0; |
| 16 | } |