Pick three bugfixes from next branch to trunk for inclusion in 4.5.0 RC2, as discusse...
[sdcc.git] / sdcc / support / regression / tests / bug-2767.c
blob402f8da52588b047bbdb973ccb7e0f2e20f5832a
1 /*
2 bug1-2195.c
4 Assertion failure in z80 code generation.
5 */
7 #include <testfwk.h>
9 #if !defined(__SDCC_mcs51) && !defined(__SDCC_ds390) && !defined(__SDCC_hc08) && !defined(__SDCC_s08) && !defined (__SDCC_mos6502) && !defined(__SDCC_mos65c02) && !defined(__SDCC_pdk14) && !defined (__SDCC_pdk15) /* mcs51, hc08, s08 and pdk14 have restrictions on function pointers wrt. reentrancy */
10 void f(void)
12 ((void (*)(int)) 0)(0);
14 #endif
16 void testBug(void)