diff options
author | bloodstalker <thabogre@gmail.com> | 2016-11-22 16:54:54 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2016-11-22 16:54:54 +0000 |
commit | 1a96ef926d2600da0e5b8521309b8cbb7c11c768 (patch) | |
tree | a01a2593805df2d7591b463ddda42b46ff011df5 /test/testFuncs1.c | |
parent | updated and fixed (diff) | |
download | mutator-1a96ef926d2600da0e5b8521309b8cbb7c11c768.tar.gz mutator-1a96ef926d2600da0e5b8521309b8cbb7c11c768.zip |
added tdd tests for 9.3
Diffstat (limited to 'test/testFuncs1.c')
-rw-r--r-- | test/testFuncs1.c | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/test/testFuncs1.c b/test/testFuncs1.c index 115cad0..1efb4de 100644 --- a/test/testFuncs1.c +++ b/test/testFuncs1.c @@ -15,7 +15,6 @@ typedef unsigned char BYTE; /******************************************************Globals*********************************************************/
-
/**********************************************************************************************************************/
void test (void);
void test2 (void);
@@ -782,5 +781,42 @@ double test12(double a) return a * 2;
}
+int test13(void)
+{
+ static int a;
+ int b;
+
+ return (a * b);
+}
+
+void test14 (void)
+{
+ int arr[3][2] = {{2, 3}, {4, 5}, {6, 7}};
+
+ int arr2[4][4] = {0};
+
+ int arr3[2][3];
+
+ /*illegal forms.*/
+#if 0
+ arr3 = {0};
+
+ arr3 = {{1, 2, 3}, {4, 5, 6}};
+#endif
+}
+
+void test15(void)
+{
+ enum colour {red = 3, blue, yellow, green = 5};
+
+ enum anotherset {black, grey, white};
+
+ enum yetanotherset {pink = 7, purple, magenta, maroon};
+
+ enum loco {verrueckt, crazy = 3, divune};
+
+ enum primeevil {diablo = 2, mephisto = 3, baal = 4};
+}
+
/**********************************************************************************************************************/
/*the last line's been intentionally left blank.*/
|