PageRenderTime 10ms CodeModel.GetById 1ms app.highlight 7ms RepoModel.GetById 2ms app.codeStats 0ms

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

#
Objective C | 27 lines | 21 code | 6 blank | 0 comment | 4 complexity | 01f6706d049e86f5d9f06d48dd17525a MD5 | raw file
 1typedef_inherit
 2
 3a = typedef_inherit.Foo();
 4b = typedef_inherit.Bar();
 5
 6x = typedef_inherit.do_blah(a);
 7if (!strcmp(x,"Foo::blah"))
 8    error("Whoa! Bad return", x)
 9endif
10
11x = typedef_inherit.do_blah(b);
12if (!strcmp(x,"Bar::blah"))
13    error("Whoa! Bad return", x)
14endif
15
16c = typedef_inherit.Spam();
17d = typedef_inherit.Grok();
18
19x = typedef_inherit.do_blah2(c);
20if (!strcmp(x,"Spam::blah"))
21    error("Whoa! Bad return", x)
22endif
23
24x = typedef_inherit.do_blah2(d);
25if (!strcmp(x,"Grok::blah"))
26    error("Whoa! Bad return", x)
27endif