swig/Examples/test-suite/octave/smart_pointer_templatevariables_runme.m
2020-08-27 17:19:13 +10:00

19 lines
278 B
Objective-C

smart_pointer_templatevariables
d = DiffImContainerPtr_D(create(1234, 5678));
if (d.id != 1234)
error("failed");
endif
#if (d.xyz != 5678):
# error("failed");
d.id = 4321;
#d.xyz = 8765
if (d.id != 4321)
error("failed");
endif
#if (d.xyz != 8765):
# error("failed");