struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-pr85529-2.c
blobdbdb5856b127c1ffac9b3ce0abb66fd0f6614caf
1 /*
2 pr85529-2.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 /* PR tree-optimization/85529 */
9 int
10 foo (int x)
12 x &= 63;
13 x -= 50;
14 x |= 1;
15 if (x < 0)
16 return 1;
17 int y = x >> 2;
18 if (x >= y)
19 return 1;
20 return 0;
23 void
24 testTortureExecute (void)
26 #if !(defined (__GNUC__) && (__GNUC__ < 8))
27 int i;
28 for (i = 0; i < 63; i++)
29 if (foo (i) != 1)
30 ASSERT (0);
31 return;
32 #endif