blob: 4c90b376b7ecbfecb49f6e84301763a9fe5031fb [file] [log] [blame]
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