* src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
[fw/sdcc] / support / regression / tests / absolute.c
index 28bfbf8827c900104ed7eb8612ba4008aa7936f4..cfc5b140c10a3e6a1915a0a169fe00872eb5e264 100644 (file)
@@ -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
 }