summaryrefslogtreecommitdiff
path: root/test/test06.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/test06.cpp')
-rw-r--r--test/test06.cpp86
1 files changed, 86 insertions, 0 deletions
diff --git a/test/test06.cpp b/test/test06.cpp
new file mode 100644
index 0000000..3aca55b
--- /dev/null
+++ b/test/test06.cpp
@@ -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;
+}