PageRenderTime 41ms CodeModel.GetById 15ms 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
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. from smart_pointer_multi_typedef import *
  2. f = Foo()
  3. b = Bar(f)
  4. s = Spam(b)
  5. g = Grok(b)
  6. s.x = 3
  7. if s.getx() != 3:
  8. raise RuntimeError
  9. g.x = 4
  10. if g.getx() != 4:
  11. raise RuntimeError