summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr82217.c
blob: 471f474aab3f8a90da55b8ed81ec4de23a4295d5 (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
/* { dg-do compile } */

int a, b, c;

void fn1 ()
{ 
  while (1)
    { 
      if (c)
	goto L2;
      break;
    }
  if (c)
    {
L1:
	{
	  int g[1];
	  if (b)
	    goto L1;
	  goto L1;
L2:
	  for (a = 0; a;)
	    goto L1;
	}
    }
}

int main ()
{ 
  fn1 ();
  return 0;
}