summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr81181.c
blob: e7216d7bf3e022f18b3f12ea35fcd0be2c8119d5 (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
30
/* { dg-do compile } */

unsigned int lh;

void
ny (int t3, int ys, int rt, int p8)
{
  if (lh != 0)
    {
      if (0)
	{
oo:
	  do
	    {
	      rt = (p8 != 0) ? t3 : 0;
	      rt = (rt != 0 || lh != (unsigned int)ys);
	      rt += lh + ys;
	    }
	  while (t3 <= 0);

	  lh = ys;
	  ys = rt;
	}

      if (lh != 0)
	p8 = lh;
    }

  goto oo;
}