summaryrefslogtreecommitdiff
path: root/Examples/test-suite/python/smart_pointer_templatevariables_runme.py
blob: 46555148091ec2aca63e80bd714b750355ebeb06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from smart_pointer_templatevariables import *

d = DiffImContainerPtr_D(create(1234, 5678))

if (d.id != 1234):
    raise RuntimeError
# if (d.xyz != 5678):
#  raise RuntimeError

d.id = 4321
#d.xyz = 8765

if (d.id != 4321):
    raise RuntimeError
# if (d.xyz != 8765):
#  raise RuntimeError