summaryrefslogtreecommitdiff
path: root/test/test42.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/test42.cpp')
-rw-r--r--test/test42.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test42.cpp b/test/test42.cpp
index 532dee7..6501fd6 100644
--- a/test/test42.cpp
+++ b/test/test42.cpp
@@ -56,6 +56,8 @@ class Object1
Data1 *tmp1;
Data1 *tmp2;
Data1 *tmp3 __attribute__((nonnullpointer));
+ int x;
+ int y;
Data1 *getData1()
{
@@ -156,4 +158,9 @@ class Object1
ptr1.ptrval->val = 100;
}
+ void func17(Data1 *ptr1)
+ {
+ x = gptr2->val;
+ y = gptr2->val;
+ }
};