diff options
Diffstat (limited to 'test/test42.cpp')
-rw-r--r-- | test/test42.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/test42.cpp b/test/test42.cpp index 6501fd6..be42808 100644 --- a/test/test42.cpp +++ b/test/test42.cpp @@ -163,4 +163,18 @@ class Object1 x = gptr2->val; y = gptr2->val; } + + void func18(Data1 *ptr1) const + { + if (gptr1 && gptr1->getData6()) + gptr1->val = 100; + } + + void func19(Data1 *ptr1) const + { +// if (gptr1 && gptr1->getData6() && k == 200) + if (gptr1 && gptr1->getData6()) + gptr1->val = 100; + } + }; |