struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug-2645.c
bloba677f87abed837b0d672fc5d62802bfe67978c7f
1 /*
2 bug-2645.c - conversion from integers to pointers was broken in initalizations.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma disable_warning 154
9 #pragma disable_warning 88
11 unsigned char *backgrounds[1] = {25768 + 32 + 32 + 32 + 32 + 32 + 32};
12 #endif
14 void testBug(void)
16 #ifdef __SDCC
17 ASSERT(backgrounds[0] == (unsigned char *)(25768 + 32 + 32 + 32 + 32 + 32 + 32));
18 #endif