PageRenderTime 12ms CodeModel.GetById 1ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 1ms

/trunk/Examples/test-suite/octave/return_const_value_runme.m

#
Objective C | 11 lines | 9 code | 2 blank | 0 comment | 4 complexity | d4053238ab06725e1445f68fcc5447aa MD5 | raw file
 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