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

int a, b, c, d, e;
int fn1(p1, p2) { return p2 == 0 ? p1 : 1 % p2; }

void fn2()
{
  c = 0;
  for (;; c = (unsigned short)c)
    {
      b = 2;
      for (; b; b = a)
	{
	  e = fn1(2, c && 1);
	  d = c == 0 ? e : c;
	  if (d)
	    return;
	}
    }
}