Upstream version 1.3.40
[profile/ivi/swig.git] / Examples / test-suite / python / typedef_inherit_runme.py
1 import typedef_inherit
2
3 a = typedef_inherit.Foo()
4 b = typedef_inherit.Bar()
5
6 x = typedef_inherit.do_blah(a)
7 if x != "Foo::blah":
8     print "Whoa! Bad return", x
9
10 x = typedef_inherit.do_blah(b)
11 if x != "Bar::blah":
12     print "Whoa! Bad return", x
13
14 c = typedef_inherit.Spam()
15 d = typedef_inherit.Grok()
16
17 x = typedef_inherit.do_blah2(c)
18 if x != "Spam::blah":
19     print "Whoa! Bad return", x
20
21 x = typedef_inherit.do_blah2(d)
22 if x != "Grok::blah":
23     print "Whoa! Bad return", x