aboutsummaryrefslogtreecommitdiffstats
path: root/test/testFuncs2.c
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2016-12-26 12:53:17 +0000
committerbloodstalker <thabogre@gmail.com>2016-12-26 12:53:17 +0000
commit16f476648439423c7c6c3f35f6f00e0145166179 (patch)
tree164f03d529ce72b13e930695106ce6ed7c5a0f46 /test/testFuncs2.c
parentadded implementation noted for 16.7 (diff)
downloadmutator-16f476648439423c7c6c3f35f6f00e0145166179.tar.gz
mutator-16f476648439423c7c6c3f35f6f00e0145166179.zip
added tdd tests for 16.7
Diffstat (limited to 'test/testFuncs2.c')
-rw-r--r--test/testFuncs2.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/testFuncs2.c b/test/testFuncs2.c
index efe9c8e..776dc33 100644
--- a/test/testFuncs2.c
+++ b/test/testFuncs2.c
@@ -380,5 +380,34 @@ void testfunc15 (void)
a[2] = 052;
}
+void testfunc16(int* p1, int* p2, int* const p3, const int* p4, int* p5)
+{
+ if (*p1 > 100)
+ {
+ /*do something*/
+ }
+
+ if (*p5 > 100)
+ {
+ /*do something*/
+ }
+
+ p5++;
+ p5 = p5 + 10;
+
+ *p2++;
+ *p2 = *p2 + 100;
+
+ if (*p3 > 1000)
+ {
+ /*do something else*/
+ }
+
+ if (*p4 < 100)
+ {
+ /*yet another task*/
+ }
+}
+
/*********************************************************************************************************************/
/*last line intentionally left blank.*/