summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-07-04 19:22:12 +0300
committerAndrei Karas <akaras@inbox.ru>2015-07-04 19:22:12 +0300
commitfe1495fe7f00ee88fbff638e152527940e1019da (patch)
tree3c2f674259314801ac11f32943698b742dd17529
parent75b8976a9f800b75721626af2d9168d3ed4eeca6 (diff)
downloadparanucker-fe1495fe7f00ee88fbff638e152527940e1019da.tar.gz
paranucker-fe1495fe7f00ee88fbff638e152527940e1019da.tar.bz2
paranucker-fe1495fe7f00ee88fbff638e152527940e1019da.tar.xz
paranucker-fe1495fe7f00ee88fbff638e152527940e1019da.zip
Update test 22.
-rw-r--r--test/test22.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/test22.cpp b/test/test22.cpp
index 36fd9ae..1a0db9d 100644
--- a/test/test22.cpp
+++ b/test/test22.cpp
@@ -78,6 +78,7 @@ class Object1
return;
}
}
+
void func8(Data1 *const ptr1)
{
if (!ptr1 || ptr1->val == 3 || !ptr1->ptrval)
@@ -115,4 +116,14 @@ class Object1
if (ptr1)
ptr2->val = 200;
}
+
+ void func12(Data1 *const ptr1)
+ {
+ if (!ptr1 || ptr1->val == 3)
+ return;
+
+ const int k = ptr1->arr[0];
+
+ int test1 = ptr1->val;
+ }
};