summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr67121.c
blob: 2b609ee83160221dbd0b86a5a343dd1cf3a9bcae (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
/* { dg-do run } */

int a[6], b, c = 226, d, e, f;
signed char g;

void
fn1 (int p1)
{
  b = a[p1];
}

int
main ()
{
  a[0] = 1;
  for (f = 0; f < 9; f++)
    {
      signed char h = c;
      int i = 1;
      g = h < 0 ? h : h >> i;
      e = g;
      for (d = 1; d; d = 0)
	;
    }
  fn1 (g >> 8 & 1);

  if (b != 0) 
    __builtin_abort (); 

  return 0;
}