aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr118552.c
blob: 03ee0d0ca3f2970a953e239b01d478f859af6a5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* { dg-do compile } */
/* { dg-additional-options "-fno-tree-ch -fno-tree-ccp -fno-tree-fre" } */

volatile int a;
int b, c, d, e;
int main() {
  int f = 1, g = 1;
h:
  if (!d)
    ;
  else {
    int i = 1;
  j:
    e = 0;
    for (; e < 3; e++) {
      if (e)
        for (; g < 2; g++) {
          if (c)
            return 0;
          if (f)
            goto j;
        }
      a;
      if (i)
        continue;
      f = i = 0;
    }
  }
  f = 2;
  b++;
  if (c)
    goto h;
  return 0;
}