struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug1750318.c
blob4c18a7d7f470c97e33d7a047e52eb53eb4687220
1 /*
2 bug 1750318
3 */
5 #include <testfwk.h>
7 #if defined(__SDCC_pic14)
8 __xdata char __at(0x01A0) bar;
9 #else
10 __xdata char __at(0x1234) bar;
11 #endif
13 // no need to call this, it generates compiler error:
14 // Internal error: validateOpType failed in
15 // OP_SYMBOL(IC_RESULT (ic)) @ SDCCcse.c:2172:
16 // expected symbol, got value
17 void
18 foo (void)
20 *(char volatile __xdata *) &bar = 0x80;
23 void
24 testBug (void)
26 ASSERT (1);