struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20141022-1.c
blob1950de1d79e1b58f0b651f238d0997eadc305235
1 /*
2 20141022-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 #define ABORT() do { ASSERT (0); }while(0)
12 int f(int a)
14 int f(int a)
16 int fem_key_src;
17 int D2930 = a & 4294967291;
18 fem_key_src = a == 6 ? 0 : 15;
19 fem_key_src = D2930 != 1 ? fem_key_src : 0;
20 return fem_key_src;
23 void
24 testTortureExecute (void)
26 if (f(0) != 15)
27 ABORT ();
28 if (f(1) != 0)
29 ABORT ();
30 if (f(6) != 0)
31 ABORT ();
32 if (f(5) != 0)
33 ABORT ();
34 if (f(15) != 15)
35 ABORT ();