fix ptr test to work with COBJECTs
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6263 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
7de5934a5d
commit
7cdf043367
1 changed files with 4 additions and 2 deletions
|
|
@ -42,9 +42,11 @@ if va[3].f(1) != 8:
|
|||
ip = PtrInt()
|
||||
ap = new_ArrInt(10)
|
||||
|
||||
vi = IntPtrVector((ip,ap,None))
|
||||
ArrInt_setitem(ip,0,123)
|
||||
ArrInt_setitem(ap,2,123)
|
||||
|
||||
if vi[1] != ap:
|
||||
vi = IntPtrVector((ip,ap,None))
|
||||
if ArrInt_getitem(vi[0],0) != ArrInt_getitem(vi[1],2):
|
||||
raise RuntimeError,"bad std::vector<int*> mapping"
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue