aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr57122.c
blob: f1b99c86209292cf344924cafdb3f59425ba4e83 (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
/* { dg-do compile } */

unsigned a;
int b, c;

void f(void)
{
  if(a)
    {
      for(a = 0; a < 2; a++)
	a /= 7;

      for(;; a++)
	{
	  if(a)
	    lbl1:
		b++;

	  if(c)
	    goto lbl1;
lbl2:
	  ;
	}
    }

  goto lbl2;
}