Files
cpp-thirdparty/winx64/bin/swig-3.0.12/Examples/test-suite/scilab/struct_value_runme.sci
Bassem Girgis 81b4b9e273 Initial commit
2018-12-20 17:34:07 -06:00

17 lines
337 B
Scilab

exec("swigtest.start", -1);
foo = new_Foo();
Foo_x_set(foo, 1);
if Foo_x_get(foo) <> 1 then swigtesterror(); end
bar = new_Bar();
Bar_a_set(bar, foo);
a = Bar_a_get(bar);
if Foo_x_get(a) <> 1 then swigtesterror(); end
Bar_b_set(bar, foo);
b = Bar_b_get(bar);
if Foo_x_get(b) <> 1 then swigtesterror(); end
exec("swigtest.quit", -1);