* support/regression/tests/bug1057979.c:
[fw/sdcc] / support / regression / tests / bug-227710.c
index ccf98a5b6690d3af5df90bb39b664ba092d0c4cd..013ddea84fba74ab55ef370b480b3ddeb2cc4557 100644 (file)
@@ -2,7 +2,7 @@
  */
 #include <testfwk.h>
 
-static unsigned char _data[] = {
+static unsigned char dataset[] = {
     1, 2, 3, 4
 };
 
@@ -12,17 +12,17 @@ struct {
     unsigned char index; 
 } s; 
 
-static unsigned char 
+unsigned char 
 foo(void) 
 { 
     // BUG, there will be a PRE-increment 
     return p[s.index++];
-} 
+}
 
-static void
+void
 testPostIncrement(void)
 {
-    p = _data;
+    p = dataset;
     ASSERT(foo() == 1);
     ASSERT(foo() == 2);
     ASSERT(foo() == 3);