PageRenderTime 45ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
MATLAB | 14 lines | 9 code | 5 blank | 0 comment | 1 complexity | 1643842d088cade0d029df8cca2ab057 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. dynamic_cast
  2. f = dynamic_cast.Foo();
  3. b = dynamic_cast.Bar();
  4. x = f.blah();
  5. y = b.blah();
  6. a = dynamic_cast.do_test(y);
  7. if (!strcmp(a,"Bar::test"))
  8. error("Failed!!")
  9. endif