git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6844 626c5289-ae23-0410-ae9c-e8d60b6d4f22
24 lines
296 B
Python
24 lines
296 B
Python
from smart_pointer_extend import *
|
|
|
|
f = Foo()
|
|
b = Bar(f)
|
|
|
|
if b.extension() != f.extension():
|
|
raise RuntimeError
|
|
|
|
|
|
b = CBase()
|
|
d = CDerived()
|
|
p = CPtr()
|
|
|
|
if b.bar() != p.bar():
|
|
raise RuntimeError
|
|
|
|
if d.foo() != p.foo():
|
|
raise RuntimeError
|
|
|
|
if b.hello() != p.hello():
|
|
raise RuntimeError
|
|
|
|
|
|
|