summaryrefslogtreecommitdiff
path: root/support/regression/tests/gcc-torture-execute-pr65418-1.c
blob: 1dcaac32ad2e53002440e5ea06e87072746f6cad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
   pr65418-1.c from the execute part of the gcc torture tests.
 */

#include <testfwk.h>

/* PR tree-optimization/65418 */

int
foo (int x)
{
  if (x == -216 || x == -132 || x == -218 || x == -146)
     return 1;
  return 0;
}

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