/trunk/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
- return_const_value
- p = return_const_value.Foo_ptr.getPtr();
- if (p.getVal() != 17)
- error("Runtime test1 faild. p.getVal()=", p.getVal())
- endif
- p = return_const_value.Foo_ptr.getConstPtr();
- if (p.getVal() != 17)
- error("Runtime test2 faild. p.getVal()=", p.getVal())
- endif