From d889c07af14aed4b6f0f6bbaf1cc53b2b46dba01 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Sat, 3 Dec 2016 20:48:04 +0330 Subject: added tdd tests for 8.5 --- test/testFuncs1.h | 11 +++++++++++ test/testFuncs2.h | 8 ++++++++ 2 files changed, 19 insertions(+) (limited to 'test') diff --git a/test/testFuncs1.h b/test/testFuncs1.h index 262a565..15d62be 100644 --- a/test/testFuncs1.h +++ b/test/testFuncs1.h @@ -16,6 +16,9 @@ extern union uni { } uni1; extern cucu; +int yetanotherheadervar; + +double yetanotherdoubleinsideaheader; /***********************************************************************************************************/ /*choose the compiler*/ #define COMPILER GCC @@ -130,6 +133,14 @@ void test28(void); int test29(int a); int test31(void); +void headerfund(void) +{ + int a; + int b; + int sum; + sum = a + b; +} + void malloc (void); #endif /***********************************************************************************************************/ diff --git a/test/testFuncs2.h b/test/testFuncs2.h index 8f01004..55daba8 100644 --- a/test/testFuncs2.h +++ b/test/testFuncs2.h @@ -13,6 +13,9 @@ extern int bbbb[] = {1, 2, 3, 4, 5, 6}; int c[2][3] = {1, 2, 3, 4, 5, 6}; int d[2][3] = {{1, 2, 3}, {4, 5, 6}}; + +int headervar; +double headervardouble; /*********************************************************************************************************************/ /*funciton types go here.*/ static void test33(void); @@ -32,6 +35,11 @@ testFunc5( void) /**that kind*/ } +void anotherheaderfunc (void) +{ + /*i dont do jack.*/ +} + void testFunc9(void); /*********************************************************************************************************************/ -- cgit v1.2.3