aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr81595.c
blob: 2576d8b69144bcddc696b51d5c6a0024ab313628 (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
31
32
33
34
35
36
37
38
39
/* PR rtl-optimization/81595 */

void
foo (__INTPTR_TYPE__ *x, int *y, int *z, int u, int v)
{
  while (u != 0)
    {
      if (*x != 0)
	{
	  int a = 1;
 l1:
	  if (*y != 0)
	    {
	      while (a < 2)
		{
		  a = 0;
		  x = (__INTPTR_TYPE__ *)&x;
 l2:
		  ++a;
		}
	      while (*z != 0)
		;
	    }
	  a /= 0;
	}
      else
	{
	  *z /= (*z != 0) ? 2 : 0;
	  while (v < 1)
	    {
	      *y = 0;
	      if (v != 0)
		goto l1;
	      ++v;
	    }
	  goto l2;
	}
    }
}