struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug2719592.c
blob2ca7b862b025a7c6f21b9be39f7b62279d944b25
1 /*
2 * bug2719592.c
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_sdcc99
9 #endif
11 #include <stdbool.h>
13 bool foo(char i, bool bv)
15 bv &= (i == 1);
16 return bv;
19 void
20 testBug(void)
22 ASSERT( !foo(0,0) );
23 ASSERT( !foo(0,1) );
24 ASSERT( !foo(1,0) );
25 ASSERT( foo(1,1) );