PageRenderTime 47ms CodeModel.GetById 22ms RepoModel.GetById 1ms app.codeStats 0ms

/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
  1. return_const_value
  2. p = return_const_value.Foo_ptr.getPtr();
  3. if (p.getVal() != 17)
  4. error("Runtime test1 faild. p.getVal()=", p.getVal())
  5. endif
  6. p = return_const_value.Foo_ptr.getConstPtr();
  7. if (p.getVal() != 17)
  8. error("Runtime test2 faild. p.getVal()=", p.getVal())
  9. endif