/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
- 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