aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/testFuncs2.c29
-rw-r--r--test/testFuncs2.h1
2 files changed, 30 insertions, 0 deletions
diff --git a/test/testFuncs2.c b/test/testFuncs2.c
index efe9c8e..776dc33 100644
--- a/test/testFuncs2.c
+++ b/test/testFuncs2.c
@@ -380,5 +380,34 @@ void testfunc15 (void)
a[2] = 052;
}
+void testfunc16(int* p1, int* p2, int* const p3, const int* p4, int* p5)
+{
+ if (*p1 > 100)
+ {
+ /*do something*/
+ }
+
+ if (*p5 > 100)
+ {
+ /*do something*/
+ }
+
+ p5++;
+ p5 = p5 + 10;
+
+ *p2++;
+ *p2 = *p2 + 100;
+
+ if (*p3 > 1000)
+ {
+ /*do something else*/
+ }
+
+ if (*p4 < 100)
+ {
+ /*yet another task*/
+ }
+}
+
/*********************************************************************************************************************/
/*last line intentionally left blank.*/
diff --git a/test/testFuncs2.h b/test/testFuncs2.h
index ede14eb..35a175f 100644
--- a/test/testFuncs2.h
+++ b/test/testFuncs2.h
@@ -47,6 +47,7 @@ void anotherheaderfunc (void)
void testFunc9(void);
void testFunc11(void);
void testFunc12(void);
+void testFunc16(void);
/*********************************************************************************************************************/
#endif