aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr112113.c
blob: 96cd75f1be292ce0ce90c789f096239c45bb10e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do run } */
/* The -Waggressive-loop-optimizations diagnostic is spurious, missed
   constant propagation after final value replacement.  */
/* { dg-additional-options "-Wno-aggressive-loop-optimizations -fsplit-loops" } */

volatile int a;
int main()
{
  for (int b = 0; b < 33; b += 3) {
    if (b > 31)
      a++;
  }
  if (a != 0)
    __builtin_abort();
  return 0;
}