diff options
| -rw-r--r-- | test/testFuncs1.c | 38 | ||||
| -rw-r--r-- | test/testFuncs1.h | 4 | 
2 files changed, 41 insertions, 1 deletions
| diff --git a/test/testFuncs1.c b/test/testFuncs1.c index 115cad0..1efb4de 100644 --- a/test/testFuncs1.c +++ b/test/testFuncs1.c @@ -15,7 +15,6 @@ typedef unsigned char BYTE;  /******************************************************Globals*********************************************************/
 -
  /**********************************************************************************************************************/
  void test (void);
  void test2 (void);
 @@ -782,5 +781,42 @@ double test12(double a)  	return a * 2;
  }
 +int test13(void)
 +{
 +	static int a;
 +	int b;
 +
 +	return (a * b);
 +}
 +
 +void test14 (void)
 +{
 +	int arr[3][2] = {{2, 3}, {4, 5}, {6, 7}};
 +
 +	int arr2[4][4] = {0};
 +
 +	int arr3[2][3];
 +
 +	/*illegal forms.*/
 +#if 0
 +	arr3 = {0};
 +
 +	arr3 = {{1, 2, 3}, {4, 5, 6}};
 +#endif
 +}
 +
 +void test15(void)
 +{
 +	enum colour {red = 3, blue, yellow, green = 5};
 +
 +	enum anotherset {black, grey, white};
 +
 +	enum yetanotherset {pink = 7, purple, magenta, maroon};
 +
 +	enum loco {verrueckt, crazy = 3, divune};
 +
 +	enum primeevil {diablo = 2, mephisto = 3, baal = 4};
 +}
 +
  /**********************************************************************************************************************/
  /*the last line's been intentionally left blank.*/
 diff --git a/test/testFuncs1.h b/test/testFuncs1.h index 849e8e2..4b590f8 100644 --- a/test/testFuncs1.h +++ b/test/testFuncs1.h @@ -11,6 +11,8 @@ extern union uni {  	double b;
  	char str[20];
  } uni1;
 +
 +extern cucu;
  /***********************************************************************************************************/
  /*choose the compiler*/
  #define COMPILER 	GCC
 @@ -109,6 +111,8 @@ void test6(void);  void test7(void);
  void test8(void);
  void test10(void);
 +int test13(void);
 +void test15(void);
  /***********************************************************************************************************/
  /*ive been intentionally left blank. dont touch me.*/
 | 
