struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug1734654.c
blobc90152623509b747641cb096910dec3535827265
1 /* bug1734654.c
2 */
3 #include <testfwk.h>
5 #ifdef __SDCC
6 #pragma std_sdcc99
7 #endif
9 #include <stdbool.h>
11 #ifdef __bool_true_false_are_defined
13 volatile bool b;
14 volatile unsigned char c = 1;
16 static void foo (void)
18 b = (c<2);
21 #endif //__bool_true_false_are_defined
23 void
24 testMyFunc(void)
26 #ifdef __bool_true_false_are_defined
27 foo ();
28 ASSERT (b);
29 #endif //__bool_true_false_are_defined