summaryrefslogtreecommitdiff
path: root/test/test6.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-10 16:51:12 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-10 16:54:53 +0300
commit8209297f0cde69559f751eb3614584e69d834a2a (patch)
tree7192c16b9dd32790822d725e5ba692cb50df70ad /test/test6.c
parent77fd4910981d22cb1364c134454bf640e885c81b (diff)
downloadparanucker-8209297f0cde69559f751eb3614584e69d834a2a.tar.gz
paranucker-8209297f0cde69559f751eb3614584e69d834a2a.tar.bz2
paranucker-8209297f0cde69559f751eb3614584e69d834a2a.tar.xz
paranucker-8209297f0cde69559f751eb3614584e69d834a2a.zip
Add test 6.
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;
+}