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; + } + }; +} +