summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr78725.c
blob: ed95790a447cee393e760145ba70c7cf04cf6c00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { 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; 
}