aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr103188.c
blob: 0412f6f9b79756bc6ad7544cb9ec19e8c6b367e6 (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
35
36
37
38
/* { dg-do compile } */

int a, b, c, d = 10, e = 1, f, g, h, i;
int main()
{
  int j = -1;
k:
  h = c;
l:
  c = ~c;
  if (e)
  m:
    a = 0;
  if (j > 1)
    goto m;
  if (!e)
    goto l;
  if (c)
    goto p;
n:
  goto m;
o:
  if (f) {
    if (g)
      goto k;
    j = 0;
  p:
    if (d)
      goto o;
    goto n;
  }
  if (i)
    goto l;
  for (; a < 1; a++)
    while (a > d)
      b++;
  return 0;
}