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:
parent
fd6917a2eb
commit
409dff398b
2 changed files with 35 additions and 0 deletions
|
|
@ -45,6 +45,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 += \
|
||||||
|
director_redefined \
|
||||||
array_typedef_memberin \
|
array_typedef_memberin \
|
||||||
defvalue_constructor \
|
defvalue_constructor \
|
||||||
exception_order \
|
exception_order \
|
||||||
|
|
|
||||||
34
Examples/test-suite/director_redefined.i
Normal file
34
Examples/test-suite/director_redefined.i
Normal 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;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue