struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug3004918.c
blob601ea4b6fed72fd66d7a0040ba21df3de7845feb
1 /*
2 bug3004918.c
3 */
5 #include <testfwk.h>
6 #include <stdint.h>
8 #ifdef __SDCC_STACK_AUTO
9 #define XDATA
10 #else
11 #define XDATA __xdata
12 #endif
14 uint16_t foo (uint16_t a, XDATA uint8_t b)
16 return a + b;
19 volatile uint8_t p = 0x56;
20 volatile uint8_t q = 0x78;
22 void testBug(void)
24 ASSERT (foo(p + 0x1234, q) == 0x1302);