aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr114792.c
blob: 4990e76eb2ad7f1b7741ab6c25e689b759425e72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-additional-options "-fno-tree-ccp -fno-tree-copy-prop" } */

int a;
int main() {
  int b = -1, c;
  for (; b >= 0; b++) {
    for (c = 0; c; c++) {
    L:
      while (a)
        if (a)
          goto L;
    }
  }
  return 0;
}