diff options
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; + } }; |