summaryrefslogtreecommitdiff
path: root/Examples/test-suite/octave/smart_pointer_templatevariables_runme.m
blob: 4884fa24bce2033b4d71361a36651f68854cef42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
smart_pointer_templatevariables

d = DiffImContainerPtr_D(create(1234, 5678));

if (d.id != 1234)
  error
endif
#if (d.xyz != 5678):
#  error

d.id = 4321;
#d.xyz = 8765

if (d.id != 4321)
  error
endif
#if (d.xyz != 8765):
#  error