Pick three bugfixes from next branch to trunk for inclusion in 4.5.0 RC2, as discusse...
[sdcc.git] / sdcc / support / regression / tests / bug1749275.c
blob05764d54772030395434511cf46749cceabefd6e
1 /*
2 bug 1749275
3 */
5 #include <testfwk.h>
7 __xdata char baz;
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
14 foo(void)
16 baz |= 5;
17 (*(void (*) ()) 0) ();
20 void
21 testBug (void)
23 ASSERT (1);