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

unsigned int a, b, c;

void
foo (unsigned int x)
{
  do
    {
      if (a == 0 ? 1 : 1 % a)
	for (; b; b--)
	  lab:;
      else
	while (x)
	  ;
      if (c)
	goto lab;
    }
  while (1);
}