fix smart_pointer + extend
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6835 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
9d8ba2e53b
commit
db5a9e2140
6 changed files with 72 additions and 11 deletions
19
Examples/test-suite/python/smart_pointer_extend_runme.py
Normal file
19
Examples/test-suite/python/smart_pointer_extend_runme.py
Normal 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
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue