Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / support / valdiag / tests / bug-3773.c
blob6159d650dd67df0f311d47c77f7de5288421d8bc
1 /* bug-3773.c
3 Missing diagnostic on some out-of-range __data and __idata adresses for mcs51.
4 */
6 #ifdef TEST1
7 #ifdef __SDCC_mcs51
8 __data __at (0x7e) unsigned int mcs51_data16_nowarn;
9 __idata __at (0xfe) unsigned int mcs51_idata16_nowarn;
10 __sfr __at (0xfe) mcs51_sfr8_nowarn;
11 __data __at (0x80) unsigned int mcs51_data8_warn; /* WARNING(SDCC_mcs51) */
12 __idata __at (0x100) unsigned int mcs51_idata8_warn; /* WARNING(SDCC_mcs51) */
13 __data __at (0x7f) unsigned int mcs51_data16_warn; /* WARNING(SDCC_mcs51) */
14 __idata __at (0xff) unsigned int mcs51_idata16_warn; /* WARNING(SDCC_mcs51) */
15 __sfr __at (0x7f) mcs51_sfr8_warn; /* WARNING(SDCC_mcs51) */
16 #endif
17 #if defined(__SDCC_mcs51) || defined(__SDCC_hc08) || defined(__SDCC_s08) || defined(__SDCC_mos6502)
18 __data __at (0xfe) unsigned int hc08_data16_nowarn; /* WARNING(SDCC_mcs51) */
19 __data __at (0x100) unsigned int hc08_data8_warn; /* WARNING(SDCC_mcs51|SDCC_hc08|SDCC_s08|SDCC_mos6502) */
20 __data __at (0xff) unsigned int hc08_data16_warn; /* WARNING(SDCC_mcs51|SDCC_hc08|SDCC_s08|SDCC_mos6502) */
21 #endif
22 #if defined(__SDCC_mcs51) || defined(__SDCC_sm83) || defined(__SDCC_z80)
23 __sfr __at (0xff00) sm83_sfr8_nowarn; /* WARNING(SDCC_mcs51|SDCC_z80) */
24 __sfr __at (0x7f) sm83_sfr8_warn; /* WARNING(SDCC_mcs51|SDCC_sm83) */
25 #endif
26 #if defined(__SDCC_mcs51) || defined(__SDCC_pdk13) || defined(__SDCC_pdk14) || defined(__SDCC_pdk15) || defined(__SDCC_pdk16) || defined(__SDCC_z80)
27 __sfr __at (0x1f) pdk13_sfr8_nowarn; /* WARNING(SDCC_mcs51) */
28 __sfr __at (0x20) pdk13_sfr8_warn; /* WARNING(SDCC_mcs51|SDCC_pdk13) */
29 __sfr __at (0x3f) pdk14_sfr8_nowarn; /* WARNING(SDCC_mcs51|SDCC_pdk13) */
30 __sfr __at (0x40) pdk14_sfr8_warn; /* WARNING(SDCC_mcs51|SDCC_pdk13|SDCC_pdk14) */
31 __sfr __at (0x7f) pdk15_sfr8_nowarn; /* WARNING(SDCC_mcs51|SDCC_pdk13|SDCC_pdk14) */
32 __sfr __at (0x80) pdk15_sfr8_warn; /* WARNING(SDCC_pdk13|SDCC_pdk14|SDCC_pdk15) */
33 #endif
35 unsigned char c; // Avoid empty translation unit for other ports.
36 #endif