struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug3166208.c
blobf959a9b7b26502733935ae2c54d9114bad5f976b
1 /*
2 bug3166208.c
3 */
5 #include <testfwk.h>
7 // no need to call this, it generates compiler error:
8 // SDCCval.c:1073: expected SPECIFIER, got null-link
9 volatile char a;
11 void bug3166208(void)
13 if ((* (char __xdata *)0xDF53))
15 a = 2;
19 // no need to call this, it generates compiler error:
20 // SDCCloop.c:339: expected symbol, got value
21 unsigned char __data *p;
23 void bug3150679(void)
25 while(1)
27 *((unsigned char __data *)2) = *p;
31 void
32 testBug (void)
34 ASSERT (1);