diff options
Diffstat (limited to 'test/test42.cpp')
-rw-r--r-- | test/test42.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/test42.cpp b/test/test42.cpp index 782351c..97f4e09 100644 --- a/test/test42.cpp +++ b/test/test42.cpp @@ -93,6 +93,25 @@ class Object1 tmp3->getData2(); } + void func7(Data1 *ptr1) const + { + Data1 val1; + val1.val = 100; + } + + void func8(Data1 &ptr1) const + { + ptr1.val = 200; + } + +/* + void func9(Data1 *ptr1) const + { + Data1 *val1; + val1->val = 300; + } +*/ + /* broken for now void func6(Data1 *ptr1) const |