aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr71916.c
blob: 95bc5b71f30333bc2fe19b772e09ce45133ad065 (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
/* PR rtl-optimization/71916 */

int a, b, c, d, f, g;
short h;

short
foo (short p1)
{
  return a >= 2 || p1 > 7 >> a ? p1 : p1 << a;
}

void
bar (void)
{
  for (;;)
    {
      int i, j[3];
      h = b >= 2 ? d : d >> b;
      if (foo (f > h ^ c))
	{
	  d = 0;
	  while (f <= 2)
	    {
	      char k[2];
	      for (;;)
		k[i++] = 7;
	    }
	}
      else
	for (;;)
	  g = j[2];
      if (g)
	for (;;)
	  ;
    }
}