summaryrefslogtreecommitdiff
path: root/test/test6.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test6.c')
-rw-r--r--test/test6.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/test6.c b/test/test6.c
new file mode 100644
index 0000000..d9203b2
--- /dev/null
+++ b/test/test6.c
@@ -0,0 +1,24 @@
+void func1(int *a);
+void func2(int *a);
+void func3(int *a);
+
+void func1(int *a)
+{
+ *a = 100;
+}
+
+void func2(int *a)
+{
+ if (!a)
+ return;
+ else
+ *a = 200;
+}
+
+void func3(int *aptr)
+{
+ if (!aptr)
+ return;
+
+ *aptr = 300;
+}