Imported Upstream version 2.9.0
[debian/cc1111] / support / regression / tests / bug1749275.c
1 /*
2     bug 1749275
3 */
4
5 #include <testfwk.h>
6
7 xdata char baz;
8
9 // no need to call this, it generates compiler error:
10 //   Internal error: validateOpType failed in
11 //   OP_SYM_TYPE(IC_LEFT(pl->ic)) @ peep\.c:226:
12 //   expected symbol, got value
13 void foo(void)
14 {
15         baz |= 5;
16         (*(void (*)()) 0) ();
17 }
18
19 void
20 testBug(void)
21 {
22         ASSERT(1);
23 }