summaryrefslogtreecommitdiff
path: root/test/test14.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-21 01:39:57 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-21 01:39:57 +0300
commit67b886f2f27e1de8805172b46328a0eddfcc7b62 (patch)
treea4cfe78a8838e1d8bfc3a6bbc7131f508efb5581 /test/test14.c
parent105529f34d3f9b04661a8caf4842c0eeea9d1838 (diff)
downloadparanucker-67b886f2f27e1de8805172b46328a0eddfcc7b62.tar.gz
paranucker-67b886f2f27e1de8805172b46328a0eddfcc7b62.tar.bz2
paranucker-67b886f2f27e1de8805172b46328a0eddfcc7b62.tar.xz
paranucker-67b886f2f27e1de8805172b46328a0eddfcc7b62.zip
Add test14.
Diffstat (limited to 'test/test14.c')
-rw-r--r--test/test14.c86
1 files changed, 86 insertions, 0 deletions
diff --git a/test/test14.c b/test/test14.c
new file mode 100644
index 0000000..3aca55b
--- /dev/null
+++ b/test/test14.c
@@ -0,0 +1,86 @@
+void func1(int *a);
+void func2(int *a);
+void func3(int *a);
+void func4(int *a);
+void func5(int *a);
+void func6(int *a);
+void func7(int *a);
+void func8(int *a);
+
+void func1(int *a)
+{
+ *a = 100;
+}
+
+void func2(int *a)
+{
+ if (!a)
+ return;
+ else
+ *a = 200;
+}
+
+void func3(int *a)
+{
+ if (!a)
+ return;
+
+ *a = 300;
+}
+
+void func4(int *a)
+{
+ if (a)
+ {
+ *a = 400;
+ }
+}
+
+void func5(int *a)
+{
+ if (a)
+ {
+ *a = 500;
+ }
+ *a = 600;
+}
+
+void func6(int *a)
+{
+ if (!a)
+ {
+ int k = 10;
+ return;
+ }
+
+ *a = 700;
+}
+
+void func7(int *aptr)
+{
+ if (1 == 0)
+ {
+ if (!aptr)
+ {
+ int k = 10;
+ return;
+ }
+ }
+
+ *aptr = 800;
+}
+
+void func8(int *aptr)
+{
+ if (!aptr)
+ {
+ if (1 == 0)
+ {
+ int k = 10;
+ int l = 20;
+ }
+ return;
+ }
+
+ *aptr = 900;
+}