diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-07-04 19:22:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-07-04 19:22:12 +0300 |
commit | fe1495fe7f00ee88fbff638e152527940e1019da (patch) | |
tree | 3c2f674259314801ac11f32943698b742dd17529 /test | |
parent | 75b8976a9f800b75721626af2d9168d3ed4eeca6 (diff) | |
download | paranucker-fe1495fe7f00ee88fbff638e152527940e1019da.tar.gz paranucker-fe1495fe7f00ee88fbff638e152527940e1019da.tar.bz2 paranucker-fe1495fe7f00ee88fbff638e152527940e1019da.tar.xz paranucker-fe1495fe7f00ee88fbff638e152527940e1019da.zip |
Update test 22.
Diffstat (limited to 'test')
-rw-r--r-- | test/test22.cpp | 11 |
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; + } }; |