aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/pr56466.c
blob: 9d9e27356e6ca3f0e7e91810c86b8aab1a9b7a09 (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
/* PR rtl-optimization/56466 */
/* { dg-do compile } */
/* { dg-options "-O2 -w -funroll-loops" } */

int a, b, c;

void
f (void)
{
  for (; b; b++)
    {
      if (0)
	for (; b < 0; b++)
	  if (1 % 0)
	    {
	      while (1)
		{
		  a = 0;
		lbl1:
		  c++;
		}
	    lbl2:
	      ;
	    }

      goto lbl1;
    }

  a = 0;
  goto lbl2;
}