aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr71462.c
blob: 996596321ca63f794916c514fd8e94163d6ce9af (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
/* { dg-do compile } */
/* { dg-additional-options "-w" } */

short a;
long b;
void fn1()
{
  int c = a = 1;
  for (; a; a++)
    {
      for (; 9 <= 8;)
	for (;;) {
	    a = 20;
	    for (; a <= 35; a++)
	      ;
line:;
	}
      if ((c += 264487869) == 9)
	{
	  unsigned *d = 0;
	  for (; b;)
	    d = (unsigned *)&c;
	  if (d)
	    for (;;)
	      ;
	}
    }
  goto line;
}