adding more cases
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7827 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
7c8bf2d69e
commit
285590d616
2 changed files with 10 additions and 2 deletions
|
|
@ -29,6 +29,10 @@ if a.rg(2) != 2:
|
|||
|
||||
|
||||
class PyClass(director_basic.MyClass):
|
||||
def method(self, vptr):
|
||||
self.cmethod = 7
|
||||
pass
|
||||
|
||||
def vmethod(self, b):
|
||||
b.x += 31
|
||||
return b
|
||||
|
|
@ -44,6 +48,10 @@ dd = director_basic.MyClass_get_self(d)
|
|||
bc = cc.cmethod(b)
|
||||
bd = dd.cmethod(b)
|
||||
|
||||
cc.method(b)
|
||||
if c.cmethod != 7:
|
||||
raise RuntimeError
|
||||
|
||||
if bc.x != 34:
|
||||
raise RuntimeError
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue