/trunk/Examples/test-suite/python/smart_pointer_multi_typedef_runme.py
# · Python · 15 lines · 11 code · 4 blank · 0 comment · 2 complexity · e6a93e742ab6c0d8a8c59b6253e63c2b MD5 · raw file
- from smart_pointer_multi_typedef import *
- f = Foo()
- b = Bar(f)
- s = Spam(b)
- g = Grok(b)
- s.x = 3
- if s.getx() != 3:
- raise RuntimeError
- g.x = 4
- if g.getx() != 4:
- raise RuntimeError