summaryrefslogtreecommitdiff
path: root/test/test9.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-19 14:32:24 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-19 14:32:24 +0300
commitf1c09fc39c4f5b98061712ec78c650a1b0d918ec (patch)
tree051cf8bb75a0f23dbff0609e18af3f4bc048c4a1 /test/test9.cpp
parentce0bfc35c5a5dbf66da347ac016509852a4775bb (diff)
downloadparanucker-f1c09fc39c4f5b98061712ec78c650a1b0d918ec.tar.gz
paranucker-f1c09fc39c4f5b98061712ec78c650a1b0d918ec.tar.bz2
paranucker-f1c09fc39c4f5b98061712ec78c650a1b0d918ec.tar.xz
paranucker-f1c09fc39c4f5b98061712ec78c650a1b0d918ec.zip
Add test9. Update test results.
Diffstat (limited to 'test/test9.cpp')
-rw-r--r--test/test9.cpp147
1 files changed, 147 insertions, 0 deletions
diff --git a/test/test9.cpp b/test/test9.cpp
new file mode 100644
index 0000000..da0a297
--- /dev/null
+++ b/test/test9.cpp
@@ -0,0 +1,147 @@
+class Object1
+{
+ int k;
+
+ void func1(int *ptr1, int *ptr2)
+ {
+ if (!ptr1 || !ptr2)
+ {
+ return;
+ }
+
+ *ptr1 = 200;
+ *ptr2 = 300;
+ }
+
+ void func2(int *ptr1, int *ptr2)
+ {
+ if (!ptr1 || !ptr2)
+ {
+ return;
+ }
+ else
+ {
+ *ptr1 = 100;
+ }
+
+ *ptr1 = 200;
+ *ptr2 = 300;
+ }
+
+ void func3(int *ptr1, int *ptr2)
+ {
+ if (ptr1 || ptr2)
+ {
+ return;
+ }
+
+ *ptr1 = 200;
+ *ptr2 = 300;
+ }
+
+ void func4(int *ptr1, int *ptr2)
+ {
+ if (ptr1 || ptr2)
+ {
+ return;
+ }
+ else
+ {
+ *ptr1 = 100;
+ }
+
+ *ptr1 = 200;
+ *ptr2 = 300;
+ }
+
+ void func5(int *ptr1, int *ptr2)
+ {
+ if (!ptr1 || ptr2)
+ {
+ return;
+ }
+
+ *ptr1 = 200;
+ *ptr2 = 300;
+ }
+
+ void func6(int *ptr1, int *ptr2)
+ {
+ if (!ptr1 || ptr2)
+ {
+ return;
+ }
+ else
+ {
+ *ptr1 = 100;
+ }
+
+ *ptr1 = 200;
+ *ptr2 = 300;
+ }
+
+ void func7(int *ptr1, int *ptr2)
+ {
+ if (ptr1 || !ptr2)
+ {
+ return;
+ }
+ else
+ {
+ *ptr1 = 100;
+ }
+
+ *ptr1 = 200;
+ *ptr2 = 300;
+ }
+
+ void func8(int *ptr1, int *ptr2)
+ {
+ if (!ptr1 && !ptr2)
+ {
+ return;
+ }
+ else
+ {
+ *ptr1 = 100;
+ }
+
+ *ptr1 = 200;
+ *ptr2 = 300;
+ }
+
+ void func9(int *ptr1, int *ptr2)
+ {
+ if (ptr1 && ptr2)
+ {
+ return;
+ }
+ else
+ {
+ *ptr1 = 100;
+ }
+
+ *ptr1 = 200;
+ *ptr2 = 300;
+ }
+
+
+
+/*
+ void func8(int *ptr1, int *ptr2)
+ {
+ int c;
+ if (k == c || !ptr1)
+ {
+ return;
+ }
+ else
+ {
+ *ptr1 = 100;
+ }
+
+ *ptr1 = 200;
+ *ptr2 = 300;
+ }
+*/
+};