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:
parent
13aee4b0e7
commit
bffe7fd9c7
6 changed files with 72 additions and 11 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
|
@ -19,6 +19,3 @@ if b.x != f.x:
|
|||
|
||||
if b.z != f.z:
|
||||
raise RuntimeError
|
||||
|
||||
if b.extension() != f.extension():
|
||||
raise RuntimeError
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue