summaryrefslogtreecommitdiff
path: root/test/test22.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/test22.cpp')
-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;
+ }
};