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