Imported Upstream version 2.9.0
[debian/cc1111] / support / regression / tests / bug1750318.c
1 /*\r
2     bug 1750318\r
3 */\r
4 \r
5 #include <testfwk.h>\r
6 \r
7 xdata at(0x1234) char bar;\r
8 \r
9 // no need to call this, it generates compiler error:\r
10 //   Internal error: validateOpType failed in\r
11 //   OP_SYMBOL(IC_RESULT (ic)) @ SDCCcse.c:2172:\r
12 //   expected symbol, got value\r
13 void foo(void) {\r
14         *(char volatile xdata *) &bar = 0x80;\r
15 }\r
16 \r
17 void\r
18 testBug(void)\r
19 {\r
20         ASSERT(1);\r
21 }\r