* src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
[fw/sdcc] / support / regression / tests / absolute.c
index 52cc86ab4f27739cb36098e2db11583e0a82b8d7..40f35d2c44f22187ba1875919e765abdc66e9f8b 100644 (file)
@@ -4,6 +4,7 @@
 */\r
 #include <testfwk.h>\r
 \r
+{mem} at(0xCAB7) char u;\r
 {mem} at(0xCAB7) char x = 'x';\r
 {mem} at(0xCAB9) char y = 'y';\r
 {mem} at(0xCAB0) int  k = 0x1234;\r
@@ -17,6 +18,7 @@ testAbsolute(void)
   char {mem} *pC = (char {mem} *)(0xCAB0);\r
   int  {mem} *pI = (char {mem} *)(0xCAB0);\r
 \r
+  ASSERT(u == 'x');\r
   ASSERT(pC[7] == 'x');\r
   ASSERT(pC[9] == 'y');\r
   ASSERT(pI[0] == 0x1234);\r