view gcc/testsuite/gcc.dg/torture/pr67121.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line source

/* { 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;
}