summaryrefslogtreecommitdiff
path: root/trunk/Examples/test-suite/octave/typedef_inherit_runme.m
blob: 6c4c47a43113fd2373471a7329fc3e47af0c5d97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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