/tags/rel-1.3.35/Examples/test-suite/octave/return_const_value_runme.m
MATLAB | 11 lines | 9 code | 2 blank | 0 comment | 2 complexity | d4053238ab06725e1445f68fcc5447aa MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
1return_const_value
2
3p = return_const_value.Foo_ptr.getPtr();
4if (p.getVal() != 17)
5 error("Runtime test1 faild. p.getVal()=", p.getVal())
6endif
7
8p = return_const_value.Foo_ptr.getConstPtr();
9if (p.getVal() != 17)
10 error("Runtime test2 faild. p.getVal()=", p.getVal())
11endif