swig/Examples/test-suite/python/smart_pointer_member_runme.py
Marcelo Matus db5a9e2140 fix smart_pointer + extend
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6835 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-06 06:58:41 +00:00

21 lines
242 B
Python

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