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

23 lines
305 B
Mathematica
Raw Normal View History

# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
smart_pointer_rename
f = Foo();
b = Bar(f);
if (b.test() != 3)
error("failed");
endif
if (b.ftest1(1) != 1)
error("failed");
endif
if (b.ftest2(2,3) != 2)
error("failed");
endif