summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr51042.c
blob: 05961c4acf59fd356aaa48b9ea2a84a346f9c2c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* { dg-do compile } */

int a, b;

void
foo (int x)
{
  int e[2];
  int d;
  while (x)
    {
      for (d = 0; d <= 1; d = 1)
	if (e[a])
	  break;
      for (b = 0; b <= 0; b = 1)
	{
	  e[a] = a;
	  if (a)
	    break;
	}
    }
}