summaryrefslogtreecommitdiff
path: root/trunk/Examples/test-suite/python/smart_pointer_member_runme.py
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/Examples/test-suite/python/smart_pointer_member_runme.py')
-rw-r--r--trunk/Examples/test-suite/python/smart_pointer_member_runme.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/trunk/Examples/test-suite/python/smart_pointer_member_runme.py b/trunk/Examples/test-suite/python/smart_pointer_member_runme.py
new file mode 100644
index 000000000..70e655652
--- /dev/null
+++ b/trunk/Examples/test-suite/python/smart_pointer_member_runme.py
@@ -0,0 +1,30 @@
+from smart_pointer_member import *
+
+f = Foo()
+f.y = 1
+
+if f.y != 1:
+ raise RuntimeError
+
+b = Bar(f)
+b.y = 2
+
+if f.y != 2:
+ print f.y
+ print b.y
+ raise RuntimeError
+
+if b.x != f.x:
+ raise RuntimeError
+
+if b.z != f.z:
+ raise RuntimeError
+
+if Foo.z == Bar.z:
+ raise RuntimeError
+
+
+
+
+
+