summaryrefslogtreecommitdiff
path: root/test/test23.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/test23.cpp')
-rw-r--r--test/test23.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test23.cpp b/test/test23.cpp
index 89dff5c..6b9771e 100644
--- a/test/test23.cpp
+++ b/test/test23.cpp
@@ -36,6 +36,16 @@ class Object1
{
Data1 *dataptr;
+ Object1(Data1 *ptr1) :
+ dataptr(ptr1)
+ {
+ if (dataptr)
+ {
+ ptr1->ftest1();
+ }
+ dataptr->ftest1();
+ }
+
void func1(Data1 *const ptr1)
{
dataptr = ptr1;