Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / support / valdiag / tests / bug-2798.c
blob26c5264d205e97de16a5eb45a8386151c10963e4
1 /* bug-2798.c
3 z80 and pdk code generator do not support address of __sfr, but failed to warn
4 */
6 #ifdef TEST1
7 #if !defined(__SDCC_stm8) && !defined(__SDCC_hc08) && !defined(__SDCC_s08) && !defined(__SDCC_mos6502) && !defined(__SDCC_mos65c02) && !defined(__SDCC_tlcs90) && !defined(__SDCC_sm83)
8 __sfr __at 0x1234 x; /* IGNORE */
10 unsigned char *foo(void)
12 return &x; /* WARNING(SDCC_z80|SDCC_z180|SDCC_r2k|SDCC_r2ka|SDCC_r3ka|SDCC_pdk13|SDCC_pdk14|SDCC_pdk15) */
15 #endif
17 void bar(void)
21 #endif