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

int g, a, *b;

void f(void)
{
  int *p;

  if(g)
    {
      int **k = &p;

      for(; g; p++)
	for(a = 0; a < 1; a++)
	  {
	    int *c = p;
label2:
	    if(a < 1)
	      *c = 0;
	  }

      goto label1;

      while(g++)
	for(*b = 0; *b; b++)
	  label1:
	      ;
    }

  goto label2;
}