aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/main.c9
-rw-r--r--test/testFuncs1.c34
-rw-r--r--test/testFuncs1.h6
3 files changed, 35 insertions, 14 deletions
diff --git a/test/main.c b/test/main.c
index 1984e6e..d3de2ba 100644
--- a/test/main.c
+++ b/test/main.c
@@ -1,7 +1,7 @@
/*intentionally left blank.*/
#include "testFuncs1.h"
-#include <string.h>
+//#include <string.h>
main()
{
@@ -47,13 +47,6 @@ main()
testFuncQMark (int1, int2);
testFuncCallBool ();
- im_a_mlaign_func ();
- im_a_benign_func ();
- im_a_dummy ();
- im_a_minion_01 ();
- im_a_minion_02 ();
- im_a_minion_03 ();
-
test3();
test4 (aa, bb, cc);
test5();
diff --git a/test/testFuncs1.c b/test/testFuncs1.c
index cc97eaf..f721096 100644
--- a/test/testFuncs1.c
+++ b/test/testFuncs1.c
@@ -415,14 +415,14 @@ void testFuncCallBool (void)
/*the function that is *supposedly* carrying a bug*/
-void im_a_mlaign_func (void)
+static void im_a_mlaign_func (void)
{
/* KATSU!*/
}
/*the function that is *supposedly* the good guy here*/
-void im_a_benign_func (void)
+static void im_a_benign_func (void)
{
/* see the light ring?!*/
}
@@ -450,7 +450,7 @@ void im_a_minion_02 (void)
/* minion function number #03*/
-void im_a_minion_03 (void)
+static void im_a_minion_03 (void)
{
/* minion1*/
}
@@ -1134,5 +1134,33 @@ void test32(void)
}
}
+static void test33(void)
+{
+ short int a;
+ long int b;
+
+ b = (int)a;
+}
+
+void test34(void)
+{
+ int i, a;
+
+ i >= 3;
+
+ for (;; i++)
+ {
+ a++;
+ }
+
+ ; /*yadayada*/
+ ;/*:P*/
+
+ ; int b;
+
+ test33();
+}
+
+
/**********************************************************************************************************************/
/*the last line's been intentionally left blank.*/
diff --git a/test/testFuncs1.h b/test/testFuncs1.h
index 0915b12..0f8b2ef 100644
--- a/test/testFuncs1.h
+++ b/test/testFuncs1.h
@@ -87,12 +87,12 @@ void testFuncMultiInstantiation (int level);
void testFuncQMark (int int1, int int2);
void testFuncCallBool (void);
-void im_a_mlaign_func (void);
-void im_a_benign_func (void);
+static void im_a_mlaign_func (void);
+static void im_a_benign_func (void);
void im_a_dummy (void);
void im_a_minion_01 (void);
void im_a_minion_02 (void);
-void im_a_minion_03 (void);
+static void im_a_minion_03 (void);
#if (TRUE == INLINE)
#if (MPC == COMPILER)