diff options
author | bloodstalker <thabogre@gmail.com> | 2016-11-26 01:00:32 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2016-11-26 01:00:32 +0000 |
commit | 352ff33cb2bac19eba1b97110ac7e30a91ca9445 (patch) | |
tree | f0b91441ffa6d514dd609af06329c3b56abc5837 /test | |
parent | added 14.4 and 14.5 (diff) | |
download | mutator-352ff33cb2bac19eba1b97110ac7e30a91ca9445.tar.gz mutator-352ff33cb2bac19eba1b97110ac7e30a91ca9445.zip |
added tdd tests for 14.4. 14.5 already had some.
Diffstat (limited to 'test')
-rw-r--r-- | test/main.c | 1 | ||||
-rw-r--r-- | test/testFuncs1.c | 22 | ||||
-rw-r--r-- | test/testFuncs1.h | 1 |
3 files changed, 24 insertions, 0 deletions
diff --git a/test/main.c b/test/main.c index 931545d..83798b5 100644 --- a/test/main.c +++ b/test/main.c @@ -74,5 +74,6 @@ main() test26(); test27(); test28(); + test29(a); } /*intentionally left blank.*/ diff --git a/test/testFuncs1.c b/test/testFuncs1.c index 249be0c..b70b3cd 100644 --- a/test/testFuncs1.c +++ b/test/testFuncs1.c @@ -1015,6 +1015,28 @@ void test28(void) --j;
i = j - k;
}
+
+ for (k = 0, i = 0; i < 10, k < 10; ++i, k++)
+ {
+ k = i + j;
+ --j;
+ i = j - k;
+ }
+
+ for (i = 0, k = 0; i < 10, k < 10; ++i, k++)
+ {
+ k = i + j;
+ --j;
+ i = j - k;
+ }
+}
+
+int test29(int a)
+{
+ goto loco;
+
+loco:
+ return a;
}
/**********************************************************************************************************************/
diff --git a/test/testFuncs1.h b/test/testFuncs1.h index f9b84ef..4d6827e 100644 --- a/test/testFuncs1.h +++ b/test/testFuncs1.h @@ -124,6 +124,7 @@ void test25(void); void test26(void);
void test27(void);
void test28(void);
+int test29(int a);
/***********************************************************************************************************/
/*ive been intentionally left blank. dont touch me.*/
|