summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr84830.c
blob: d076170d2587ab1eae0c13b538376fb9cf055a3a (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
40
41
42
43
44
45
46
/* { dg-do compile } */
/* { dg-additional-options "-fno-tree-ch -fno-tree-vrp" } */

int x0;

void
br (int yp, int oo)
{
  int *qi = &yp;

  if (oo == 0)
    {
g8:
      if (x0 != 0)
	x0 = yp;
      else if (oo != 0)
	x0 = yp;

      if (x0 == 0)
	{
	  *qi = 0;
	  x0 = *qi;
	}

      if (x0 != 0)
	{
	  ++oo;
	  goto g8;
	}

      if (yp == oo)
	yp += !!oo;
    }
  else
    {
      x0 = 1;
      while (x0 < 2)
	{
	  qi = &oo;
	  ++oo;
	  x0 = 1;
	}
    }

  goto g8;
}