struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-pr65418-1.c
blob1dcaac32ad2e53002440e5ea06e87072746f6cad
1 /*
2 pr65418-1.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 /* PR tree-optimization/65418 */
9 int
10 foo (int x)
12 if (x == -216 || x == -132 || x == -218 || x == -146)
13 return 1;
14 return 0;
17 void
18 testTortureExecute (void)
20 volatile int i;
21 for (i = -230; i < -120; i++)
22 if (foo (i) != (i == -216 || i == -132 || i == -218 || i == -146))
23 ASSERT (0);
24 return;