struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug-2551.c
blobe6568bfe44bf8fa712956e43553fd7a2cd05de62
1 /*
2 bug-2551.c
3 */
5 #include <testfwk.h>
6 #include <stdint.h>
8 volatile uint8_t ff = 0xff;
10 static inline uint16_t and(uint16_t a, uint16_t b) {
11 uint16_t r = a & b;
12 return r;
15 void testBug(void) {
16 goto cond;
18 cond:
19 if((~((and(ff, 128) != 0)&1))&1)
20 goto cond;
21 else
22 goto end;
24 end: