struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug-880197.c
blob89e1d91af276cdae288faf5c40c7b9aadcbd4ba6
1 /*
2 bug 880197
3 */
5 #include <testfwk.h>
7 // no need to call this, it generates compiler error:
8 // error: FATAL Compiler Internal Error in file 'gen.c'
9 // line number '8381' : genPointerSet: illegal pointer type
10 // Contact Author with source code
12 void
13 writeflash (__code unsigned char *cp, unsigned char val)
15 *(__xdata unsigned char *)cp = val;
18 void
19 testBug (void)