scilab: implement smart_pointer_simple test
This commit is contained in:
parent
ca3bee92b2
commit
16e68c7c72
1 changed files with 13 additions and 0 deletions
13
Examples/test-suite/scilab/smart_pointer_simple_runme.sci
Normal file
13
Examples/test-suite/scilab/smart_pointer_simple_runme.sci
Normal 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);
|
||||
Loading…
Add table
Add a link
Reference in a new issue