new test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4824 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
aaedaa6cb3
commit
5ae083be8a
3 changed files with 25 additions and 0 deletions
|
|
@ -43,6 +43,7 @@ DYNAMIC_LIB_PATH = $(RUNTIMEDIR):.
|
||||||
|
|
||||||
# Broken C++ test cases. (Can be run individually using make testcase.cpptest.)
|
# Broken C++ test cases. (Can be run individually using make testcase.cpptest.)
|
||||||
CPP_TEST_BROKEN += \
|
CPP_TEST_BROKEN += \
|
||||||
|
typedef_class \
|
||||||
array_typedef_memberin \
|
array_typedef_memberin \
|
||||||
exception_order \
|
exception_order \
|
||||||
template_default_arg \
|
template_default_arg \
|
||||||
|
|
|
||||||
7
SWIG/Examples/test-suite/python/typedef_class_runme.py
Normal file
7
SWIG/Examples/test-suite/python/typedef_class_runme.py
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
import typedef_class
|
||||||
|
|
||||||
|
a = typedef_class.RealA()
|
||||||
|
a.a = 3
|
||||||
|
|
||||||
|
b = typedef_class.B()
|
||||||
|
b.testA(a)
|
||||||
17
SWIG/Examples/test-suite/typedef_class.i
Normal file
17
SWIG/Examples/test-suite/typedef_class.i
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
%module typedef_class
|
||||||
|
|
||||||
|
%inline %{
|
||||||
|
class RealA
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
int a;
|
||||||
|
};
|
||||||
|
|
||||||
|
class B
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
typedef RealA A2;
|
||||||
|
int testA (const A2& a) {return a.a;}
|
||||||
|
};
|
||||||
|
|
||||||
|
%}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue