diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-19 14:32:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-19 14:32:24 +0300 |
commit | f1c09fc39c4f5b98061712ec78c650a1b0d918ec (patch) | |
tree | 051cf8bb75a0f23dbff0609e18af3f4bc048c4a1 /test/test9.cpp | |
parent | ce0bfc35c5a5dbf66da347ac016509852a4775bb (diff) | |
download | paranucker-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.cpp | 147 |
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; + } +*/ +}; |