From 11f47b98a19ac74c0b38c1d8d795f6bd4e185bf5 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Mon, 21 Nov 2016 01:24:22 +0330 Subject: updated the tests --- test/testFuncs1.c | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 70 insertions(+), 1 deletion(-) (limited to 'test/testFuncs1.c') diff --git a/test/testFuncs1.c b/test/testFuncs1.c index e90c088..770ae97 100644 --- a/test/testFuncs1.c +++ b/test/testFuncs1.c @@ -7,8 +7,15 @@ /**************************************************MACROS & DEFS*******************************************************/ /**********************************************************************************************************************/ +#define LUPO 1U +#define LOCO 2U + +typedef unsigned int ut_int; +typedef unsigned char BYTE; + +/******************************************************Globals*********************************************************/ + -/**********************************************************************************************************************/ /**********************************************************************************************************************/ void test (void); void test2 (void); @@ -702,5 +709,67 @@ void test5(void) } } +void test6 (void) +{ + int a[100]; + int *p = a; + + int i = 0; + + for (i = 0; i < 100; ++i) + { + a[i] = i; + } +} + +void test7(void) +{ + double a[100]; + + double *pointer; + + pointer = a; + + int i = 0; + + for (i = 0; i < 50; i++) + { + *(a + i) = i; + } + +} + +void test8 (void) +{ + union uni uni2; +} + +void test9 (void) +{ + /*im a comment*/ + //im also a comment +} + +void test10 (void) +{ + struct { + unsigned int r1 : 1; + unsigned int r2 : 2; + } reg1; + + struct { + signed int r3 : 1; + signed int r4 : 15; + } reg2; + + struct { + char a : 8; + signed int r5 : 14; + unsigned int r6 : 5; + ut_int r7 : 32; + BYTE r8 : 8; + } reg3; +} + /**********************************************************************************************************************/ /*the last line's been intentionally left blank.*/ -- cgit v1.2.3