/* bug1546986.c */ #include #ifdef __SDCC #pragma std_sdcc99 #endif #include #ifdef __bool_true_false_are_defined static unsigned char __pdata tst1 = 0x01; static unsigned char __pdata tst2 = 0x00; static bool test; #endif //__bool_true_false_are_defined void testBug (void) { #ifdef __bool_true_false_are_defined test = (tst1 | tst2); ASSERT (test); test = (tst2 | tst1); ASSERT (test); #endif //__bool_true_false_are_defined }