From 79596af0006624458c7ce9ed7a73c3b9ade6e8a2 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Sat, 24 Dec 2016 17:15:45 +0330 Subject: added tdd tests for 8.7 --- test/testFuncs2.c | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/testFuncs2.c b/test/testFuncs2.c index 81b0102..493a85e 100644 --- a/test/testFuncs2.c +++ b/test/testFuncs2.c @@ -81,6 +81,10 @@ typedef gaga incompletearr1; int incompletearr1[]; int incompletearr2[]; +int dudu; +int bubu; +int fufu; + int incompletearr1[10]; union u3; @@ -92,6 +96,14 @@ union u3 char ub; }; +union yizzy +{ + int ua; + char ub; +}; + +double yizzy; + double u3; double ua; @@ -114,6 +126,9 @@ static void test33(void) short int a; long int b; + int sum; + + sum = dudu + bubu + fufu; MINUS(a, b); //MINUS(a); @@ -126,6 +141,9 @@ void testfunc1(void) unsigned char a; unsigned char b; char c; + int sum; + + sum = sum + dudu + fufu; b = a; c = 123; @@ -149,7 +167,7 @@ testfunc2(void) int b; int sum; - sum = a + b; + sum = a + b + dudu; } void testfunc3() -- cgit v1.2.3