scilab: implement smart_pointer_simple test

This commit is contained in:
Simon Marchetto 2014-03-14 16:46:46 +01:00
commit 16e68c7c72

View file

@ -0,0 +1,13 @@
exec("swigtest.start", -1);
f = new_Foo();
b = new_Bar(f);
Bar_x_set(b, 3);
if Bar_x_get(b) <> 3 then swigtesterror(); end
fp = Bar___deref__(b);
Bar_x_set(b, 4);
if Bar_x_get(b) <> 4 then swigtesterror(); end
exec("swigtest.quit", -1);