aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr111652.c
blob: ebca9c798165d717defda74d7bcc64588810b311 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do run } */
/* { dg-additional-options "-fsplit-loops" } */

volatile int a;
int b;
int main() {
  for (; b < 5; b += 3) {
    b && a;
    if (b < 4)
      a--;
  }
  if (b != 6)
    __builtin_abort();
  return 0;
}