summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr87169.c
blob: ed878e0c6b9561240d18d8c4407861251c181cf8 (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
33
34
35
36
37
38
39
40
41
/* { dg-do compile } */
/* { dg-additional-options "--param rpo-vn-max-loop-depth=7" } */

int a, b, c;

int main ()
{ 
  int d;
  b = 1;
L1:
  for (; b > 1;)
    goto L2;
    { 
      int e[1];
L3:;
    }
L2:
  while (a)
    { 
      d--;
      goto L1;
    }
  while (c)
    { 
      if (a)
	goto L3;
      if (a)
	break;
      if (a)
	goto L2;
      while (c)
	while (c)
	  while (c)
	    while (c)
	      while (c)
		while (c)
		  while (c)
		    ;
    }
  return 0;
}