From 409dff398b2ebc8903554a7531b349b9b4f32c8d Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Sat, 13 Dec 2003 09:05:54 +0000 Subject: [PATCH] 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 --- Examples/test-suite/common.mk | 1 + Examples/test-suite/director_redefined.i | 34 ++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 Examples/test-suite/director_redefined.i diff --git a/Examples/test-suite/common.mk b/Examples/test-suite/common.mk index 5c2bb01e7..91bcf0e2b 100644 --- a/Examples/test-suite/common.mk +++ b/Examples/test-suite/common.mk @@ -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 \ diff --git a/Examples/test-suite/director_redefined.i b/Examples/test-suite/director_redefined.i new file mode 100644 index 000000000..79b8bef6e --- /dev/null +++ b/Examples/test-suite/director_redefined.i @@ -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; + } + }; +} +