aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr52073.c
blob: 19056e1ead2d236d09b4b799bb9e35dc8b7a5361 (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
/* PR tree-optimization/52073 */

int a, b, c, d, e, f;

void
foo (int x)
{
  e = 1;
  for (;;)
    {
      int g = c;
      if (x)
	{
	  if (e)
	    continue;
	  while (a)
	    --f;
	}
      else
	for (b = 5; b; b--)
	  {
	    d = g;
	    g = 0 == d;
	  }
      if (!g)
	x = 0;
    }
}