PageRenderTime 4ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 1from smart_pointer_multi_typedef import *
 2
 3f = Foo()
 4b = Bar(f)
 5s = Spam(b)
 6g = Grok(b)
 7
 8s.x = 3
 9if s.getx() != 3:
10    raise RuntimeError
11
12g.x = 4
13if g.getx() != 4:
14    raise RuntimeError
15