struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20010604-1.c
blob122cdd5cc7c322c44007e0ae6fcff08668fca9c0
1 /*
2 20010604-1.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
11 #include <stdbool.h>
13 int func (int a, int b, int c, _Bool d, _Bool e, _Bool f, char g)
15 if (g != 1 || d != true || e != true || f != true) ASSERT (0);
16 return a + b + c;
19 void
20 testTortureExecute (void)
22 if (func (1, 2, -3, true, true, true, '\001'))
23 ASSERT (0);
24 return;