struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug1546986.c
blob9a06ac36ab37f227b9532e574ecbe4cf3163f510
1 /*
2 bug1546986.c
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_sdcc99
9 #endif
11 #include <stdbool.h>
13 #ifdef __bool_true_false_are_defined
15 static unsigned char __pdata tst1 = 0x01;
16 static unsigned char __pdata tst2 = 0x00;
18 static bool test;
20 #endif //__bool_true_false_are_defined
22 void
23 testBug (void)
25 #ifdef __bool_true_false_are_defined
26 test = (tst1 | tst2);
27 ASSERT (test);
28 test = (tst2 | tst1);
29 ASSERT (test);
30 #endif //__bool_true_false_are_defined