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

/trunk/Examples/test-suite/python/smart_pointer_templatevariables_runme.py

#
Python | 17 lines | 7 code | 5 blank | 5 comment | 2 complexity | ec965b507be4a400942c30f987745f87 MD5 | raw file
 1from smart_pointer_templatevariables import *
 2
 3d = DiffImContainerPtr_D(create(1234, 5678))
 4
 5if (d.id != 1234):
 6  raise RuntimeError
 7#if (d.xyz != 5678):
 8#  raise RuntimeError
 9
10d.id = 4321
11#d.xyz = 8765
12
13if (d.id != 4321):
14  raise RuntimeError
15#if (d.xyz != 8765):
16#  raise RuntimeError
17