aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr56181.c
blob: c382b29c43bd713ffabc7d60805b26ea70264a79 (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
/* { dg-do compile } */
/* { dg-options "-ftracer" } */

int a, b;

void f(void)
{
  if(a++)
    {
      for(a = 0; a < 1;)
	{
	  for(b = 0; b < 1; b++)
	    {
	      while(a++ < 0);
lbl:
	      ;
	    }

	  if(a)
	    goto lbl;
	}

      goto lbl;
    }
}