struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20020328-1.c
blob934c91167192a56499d3427d2c29f67d5800d7d2
1 /*
2 20020328-1.c from the execute part of the gcc torture suite.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
11 int b = 0;
13 void
14 func (void) { }
16 void
17 tryit(int x)
19 ASSERT (x == 20);
22 void
23 testTortureExecute (void)
25 int a = 0;
27 if (b)
28 func();
30 /* simplify_and_const_int would incorrectly omit the mask in
31 the line below. */
32 tryit ((a + 23) & 0xfffffffc);
33 return;