aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/pr65418-2.c
blob: 9dc1c66ac62ba593a82317e2210d2e766c2327d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* PR tree-optimization/65418 */

__attribute__((noinline, noclone)) int
foo (int x)
{
  if (x == -216 || x == -211 || x == -218 || x == -205 || x == -223)
     return 1;
  return 0;
}

int
main ()
{
  volatile int i;
  for (i = -230; i < -200; i++)
    if (foo (i) != (i == -216 || i == -211 || i == -218 || i == -205 || i == -223))
      __builtin_abort ();
  return 0;
}