aboutsummaryrefslogtreecommitdiffstats
path: root/test/testFuncs2.c
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2016-12-01 22:14:00 +0000
committerbloodstalker <thabogre@gmail.com>2016-12-01 22:14:00 +0000
commite1d85f5ca79482a065c1c1235af3124ee2119d7a (patch)
treec7f332010318d962c83d806e93a0fbda82c167f5 /test/testFuncs2.c
parentnow used the compile command database for the misrac tdd tests (diff)
downloadmutator-e1d85f5ca79482a065c1c1235af3124ee2119d7a.tar.gz
mutator-e1d85f5ca79482a065c1c1235af3124ee2119d7a.zip
added tdd tests
Diffstat (limited to '')
-rw-r--r--test/testFuncs2.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/testFuncs2.c b/test/testFuncs2.c
index 309c280..fb30dd8 100644
--- a/test/testFuncs2.c
+++ b/test/testFuncs2.c
@@ -3,9 +3,25 @@
/*********************************************************************************************************************/
/*inclusion directives*/
#include "testFuncs2.h"
+#if 0
+#include <stdlib.h>
+#include <stdio.h>
+#include <stddef.h>
+#include <signal.h>
+#include <time.h>
+#endif
/*********************************************************************************************************************/
/*macro and definitions*/
typedef const* INTPTR;
+
+#define XMACRO Y
+
+#define ABSOLUTE(X) (((X) >= 0) ? (X) : -(X))
+#define ABSOLUTE2(X) ((X >= 0) ? X : -X)
+#define ABSOLUTE3(XMACRO) (((XMACRO) <= 0) ? (XMACRO) : -(XMACRO))
+
+#define LOCOLUPO
+#undef LOCOLUPO
/*********************************************************************************************************************/
/*Globals*/
@@ -13,6 +29,7 @@ typedef const* INTPTR;
/*functions go here.*/
static void test33(void)
{
+
short int a;
long int b;
@@ -27,6 +44,9 @@ void testfunc1(void)
b = a;
}
+#if CRAZYMACRO < 0
+#endif
+
testfunc2(void)
{
int a;
@@ -42,6 +62,9 @@ void testfunc3()
int b;
int c;
+ int abcdefghijklmnopqrstuvwxyz1234567890;
+ int abcdefghijklmnopqrstuvwxyz12345678902;
+
/*do stuff*/
}