added a new broken director case. the fix is simple but

it will require to modify lang.cxx, so, it will
wait the next release.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5561 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2003-12-13 09:05:54 +00:00
commit 409dff398b
2 changed files with 35 additions and 0 deletions

View file

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

View file

@ -0,0 +1,34 @@
%module(directors="1") director_redefined
/*
This example generates two 'get_val' virtual members in the
director, and since they are equivalent, the compilation fails.
*/
%feature("director") B;
%inline
{
typedef int Int;
struct A
{
virtual ~A()
{
}
virtual int get_val(Int a)
{
return 0;
}
};
struct B : A
{
virtual int get_val(int a)
{
return 1;
}
};
}