git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4824 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2003-05-28 17:30:04 +00:00
commit 5ae083be8a
3 changed files with 25 additions and 0 deletions

View file

@ -43,6 +43,7 @@ DYNAMIC_LIB_PATH = $(RUNTIMEDIR):.
# Broken C++ test cases. (Can be run individually using make testcase.cpptest.)
CPP_TEST_BROKEN += \
typedef_class \
array_typedef_memberin \
exception_order \
template_default_arg \

View file

@ -0,0 +1,7 @@
import typedef_class
a = typedef_class.RealA()
a.a = 3
b = typedef_class.B()
b.testA(a)

View 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;}
};
%}