summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/pr65418-1.c
blob: 54068b3b817989db2af5c08a03845afee426a397 (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 == -132 || x == -218 || x == -146)
     return 1;
  return 0;
}

int
main ()
{
  volatile int i;
  for (i = -230; i < -120; i++)
    if (foo (i) != (i == -216 || i == -132 || i == -218 || i == -146))
      __builtin_abort ();
  return 0;
}