* src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
[fw/sdcc] / support / regression / tests / storage.c
index 9a8b70056d02a6ae01a3515da3b76b498f3d3f88..7b4c4fa7772bd593ceba1e2bc8bc5d92a2b66a5e 100644 (file)
@@ -2,19 +2,19 @@
 
     source_storage: static, register,
     dest_storage: static, register, 
-    type: char, int
+    type: char, int, long
  */
 #include <testfwk.h>
 
 /** Simple function that spoils sdcc's optimiser by hiding an assign.
  */
-static {type}
+{type}
 spoilAssign({type} in)
 {
     return in;
 }
 
-static void
+void
 testStorageTypes(void)
 {
     {source_storage} {type} source;
@@ -24,8 +24,8 @@ testStorageTypes(void)
     // Test compare against a const
     ASSERT(source == 17);
 
-    dest = spoilAssign(134);
-    ASSERT(dest == 134);
+    dest = spoilAssign(126);
+    ASSERT(dest == 126);
     ASSERT(dest != source);
 
     // Test assignment