Imported Upstream version 2.9.0
[debian/cc1111] / support / regression / tests / bug-880197.c
1 /*
2     bug 880197
3 */
4
5 #include <testfwk.h>
6
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
11
12 void
13 writeflash(code unsigned char *cp, unsigned char val)
14 {
15         *(xdata unsigned char *)cp = val;
16 }
17
18 void
19 testBug(void)
20 {
21 }