more smart_pointer fixes + cases
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6844 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
f91144e004
commit
d6760d4889
6 changed files with 87 additions and 26 deletions
|
|
@ -11,9 +11,14 @@ 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
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -19,3 +19,12 @@ if b.x != f.x:
|
|||
|
||||
if b.z != f.z:
|
||||
raise RuntimeError
|
||||
|
||||
if Foo.z == Bar.z:
|
||||
raise RuntimeError
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue