Files
ANSLibs/swig-4.3.0/Examples/test-suite/octave/ret_by_value_runme.m

16 lines
250 B
Objective-C

# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
ret_by_value
a = ret_by_value.get_test();
if (a.myInt != 100)
error("failed");
endif
if (a.myShort != 200)
error("failed");
endif