*/
#include <testfwk.h>
-static unsigned char _data[] = {
+static unsigned char dataset[] = {
1, 2, 3, 4
};
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);