swig/Examples/test-suite/python/smart_pointer_not_runme.py
Dave Beazley 12a43edc2d The great merge
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4141 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2002-11-30 22:01:28 +00:00

42 lines
472 B
Python

from smart_pointer_not import *
f = Foo()
b = Bar(f)
s = Spam(f)
g = Grok(f)
try:
x = b.x
print "Error! b.x"
except:
pass
try:
x = s.x
print "Error! s.x"
except:
pass
try:
x = g.x
print "Error! g.x"
except:
pass
try:
x = b.getx()
print "Error! b.getx()"
except:
pass
try:
x = s.getx()
print "Error! s.getx()"
except:
pass
try:
x = g.getx()
print "Error! g.getx()"
except:
pass