swig/Examples/test-suite/octave/smart_pointer_templatevariables_runme.m
Xavier Delacour 393391965c Initial commit of Octave module.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10290 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-01 23:35:44 +00:00

19 lines
234 B
Objective-C

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