fix smart_pointer + extend

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6835 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-12-06 06:58:41 +00:00
commit bffe7fd9c7
6 changed files with 72 additions and 11 deletions

View file

@ -0,0 +1,19 @@
from smart_pointer_extend import *
f = Foo()
b = Bar(f)
if b.extension() != f.extension():
raise RuntimeError
b = CBase()
d = CDerived()
p = CPtr()
if d.foo() != p.foo():
raise RuntimeError

View file

@ -19,6 +19,3 @@ if b.x != f.x:
if b.z != f.z:
raise RuntimeError
if b.extension() != f.extension():
raise RuntimeError