X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=support%2Fregression%2Ftests%2Fabsolute.c;h=cfc5b140c10a3e6a1915a0a169fe00872eb5e264;hb=28e26703880560af06ad6fd7b1d0d123587de26e;hp=28bfbf8827c900104ed7eb8612ba4008aa7936f4;hpb=9c5f50d6b3f4b30c087406b83bbd322e7e7185db;p=fw%2Fsdcc diff --git a/support/regression/tests/absolute.c b/support/regression/tests/absolute.c index 28bfbf88..cfc5b140 100644 --- a/support/regression/tests/absolute.c +++ b/support/regression/tests/absolute.c @@ -15,12 +15,14 @@ void testAbsolute(void) { #if defined(SDCC_mcs51) || defined(SDCC_ds390) || defined(SDCC_hc08) + static {mem} at(0xCAB6) char s = 's'; char {mem} *pC = (char {mem} *)(0xCAB0); int {mem} *pI = (int {mem} *)(0xCAB0); ASSERT(u == 'x'); ASSERT(pC[7] == 'x'); ASSERT(pC[9] == 'y'); + ASSERT(pC[6] == 's'); ASSERT(pI[0] == 0x1234); #endif }