struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug1337835.c
blob7abccb4090bb771fb71fa99a0aa48b91b7c08a77
1 /*
2 bug1337835.c
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_sdcc99
9 #endif
11 #include <stdbool.h>
13 char e;
15 void foo (unsigned long ul, bool b, char c) __reentrant
17 if (b && (long) ul < 0)
18 e = 0;
19 if (ul && b && c)
20 e = 1;
23 void
24 test_1337835(void)
26 e = 2;
27 foo(0, 1, 0);
28 ASSERT( e == 2 );