view gcc/testsuite/gcc.dg/pr78725.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { dg-do run } */
/* { dg-options "-O3 -fsplit-loops" } */

int fn1 (int b, int c)
{
    return c < 0 || c > 31 ? 0 : b >> c;
}

unsigned char d = 255; 
int e, f;

int main ()
{
  for (; f < 2; f++)
    e = fn1 (1, d++);
  if (e != 1)
    __builtin_abort ();
  return 0; 
}