aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2016-12-23 20:50:30 +0000
committerbloodstalker <thabogre@gmail.com>2016-12-23 20:50:30 +0000
commit8f8a0e3b96ad8bc08c887f09eb48b10a2f8851dd (patch)
treef8455da4989f72f33e970ff7f6067781921d79b1
parentadded 5.1 (diff)
downloadmutator-8f8a0e3b96ad8bc08c887f09eb48b10a2f8851dd.tar.gz
mutator-8f8a0e3b96ad8bc08c887f09eb48b10a2f8851dd.zip
added some tests and comments
Diffstat (limited to '')
-rw-r--r--test/testFuncs1.c4
-rw-r--r--test/testFuncs2.c25
2 files changed, 29 insertions, 0 deletions
diff --git a/test/testFuncs1.c b/test/testFuncs1.c
index 50c5905..9af097c 100644
--- a/test/testFuncs1.c
+++ b/test/testFuncs1.c
@@ -15,6 +15,10 @@
typedef unsigned int ut_int;
typedef signed int t_int;
typedef unsigned char BYTE;
+/*5.3:clang doesnt allow typedef redifinition*/
+#if 0
+typedef const int dummytypedef;
+#endif
const unsigned int shift = 10U;
diff --git a/test/testFuncs2.c b/test/testFuncs2.c
index 18b2260..81b0102 100644
--- a/test/testFuncs2.c
+++ b/test/testFuncs2.c
@@ -13,6 +13,16 @@
/*********************************************************************************************************************/
/*macro and definitions*/
typedef const* INTPTR;
+/*clang wont let it through*/
+#if 0
+typedef int dummytypedef;
+#endif
+
+#if 0
+/*clang wont let it through*/
+/*for 5.3*/
+typedef gaga incompletearr1;
+#endif
#define XMACRO Y
@@ -82,6 +92,11 @@ union u3
char ub;
};
+double u3;
+double ua;
+
+int s10;
+
struct s10;
struct s11;
@@ -145,8 +160,10 @@ void testfunc3()
#define LUPO wolf
+#if 1
int abcdefghijklmnopqrstuvwxyz1234567890;
int abcdefghijklmnopqrstuvwxyz12345678902;
+#endif
/*do stuff*/
}
@@ -312,5 +329,13 @@ void testfunc14(void)
d = e;
}
+void testfunc15 (void)
+{
+ int a[10];
+
+ a[1] = 041;
+ a[2] = 052;
+}
+
/*********************************************************************************************************************/
/*last line intentionally left blank.*/