summaryrefslogtreecommitdiff
path: root/test/test08.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-19 16:18:44 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-19 16:22:04 +0300
commit07d855f00bef2bc0443f5549073747dee8df858f (patch)
tree3267f5eec91d6a742834eaaac10e2e2546b607e0 /test/test08.cpp
parentcfeea49b5c533fe7fe4dace22f68f63cbe8403e3 (diff)
downloadparanucker-07d855f00bef2bc0443f5549073747dee8df858f.tar.gz
paranucker-07d855f00bef2bc0443f5549073747dee8df858f.tar.bz2
paranucker-07d855f00bef2bc0443f5549073747dee8df858f.tar.xz
paranucker-07d855f00bef2bc0443f5549073747dee8df858f.zip
Add to all test names leading 0.
This mean test1 -> test01, etc
Diffstat (limited to 'test/test08.cpp')
-rw-r--r--test/test08.cpp77
1 files changed, 77 insertions, 0 deletions
diff --git a/test/test08.cpp b/test/test08.cpp
new file mode 100644
index 0000000..6b937f1
--- /dev/null
+++ b/test/test08.cpp
@@ -0,0 +1,77 @@
+class Object1
+{
+ int k;
+
+ void func1(int *ptr1)
+ {
+ if (!ptr1)
+ return;
+
+ *ptr1 = 100;
+ }
+
+ void func2(int *ptr2)
+ {
+ if (!ptr2)
+ {
+ k = 0;
+ }
+
+ *ptr2 = 200;
+ }
+
+ void func3(int *ptr3)
+ {
+ if (ptr3)
+ return;
+
+ *ptr3 = 300;
+ }
+
+ void func4(int *ptr4)
+ {
+ if (ptr4)
+ k = 0;
+ else
+ return;
+
+ *ptr4 = 400;
+ }
+
+ void func5(int *ptr5)
+ {
+ if (!ptr5)
+ return;
+ else
+ *ptr5 = 501;
+
+ *ptr5 = 500;
+ }
+
+ void func6(int *ptr6)
+ {
+ if (ptr6)
+ {
+ if (!ptr6)
+ return;
+ }
+
+ *ptr6 = 600;
+ }
+
+ void func7(int *ptr7)
+ {
+ if (!ptr7)
+ {
+ return;
+ }
+ else
+ {
+ if (!ptr7)
+ return;
+ *ptr7 = 701;
+ }
+
+ *ptr7 = 700;
+ }
+};