aboutsummaryrefslogtreecommitdiffstats
path: root/test/testFuncs1.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/testFuncs1.c71
1 files changed, 70 insertions, 1 deletions
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.*/