view gcc/testsuite/gcc.dg/pr78725.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +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; 
}