/trunk/Examples/test-suite/octave/typedef_inherit_runme.m
MATLAB | 27 lines | 21 code | 6 blank | 0 comment | 4 complexity | 01f6706d049e86f5d9f06d48dd17525a MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- typedef_inherit
- a = typedef_inherit.Foo();
- b = typedef_inherit.Bar();
- x = typedef_inherit.do_blah(a);
- if (!strcmp(x,"Foo::blah"))
- error("Whoa! Bad return", x)
- endif
- x = typedef_inherit.do_blah(b);
- if (!strcmp(x,"Bar::blah"))
- error("Whoa! Bad return", x)
- endif
- c = typedef_inherit.Spam();
- d = typedef_inherit.Grok();
- x = typedef_inherit.do_blah2(c);
- if (!strcmp(x,"Spam::blah"))
- error("Whoa! Bad return", x)
- endif
- x = typedef_inherit.do_blah2(d);
- if (!strcmp(x,"Grok::blah"))
- error("Whoa! Bad return", x)
- endif