diff --git a/Examples/test-suite/common.mk b/Examples/test-suite/common.mk index 5427e87d9..cb1bf9a86 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 += \ + template_partial_arg \ array_typedef_memberin \ exception_order \ template_default_arg \ diff --git a/Examples/test-suite/template_partial_arg.i b/Examples/test-suite/template_partial_arg.i new file mode 100644 index 000000000..539f76f8e --- /dev/null +++ b/Examples/test-suite/template_partial_arg.i @@ -0,0 +1,21 @@ +%module template_partial_arg + +%inline %{ + template class Foo { + public: + T bar() { return T(); } + T* baz() { return 0; } + }; + + template class Foo { + public: + T bar() { return T(); } + T* baz() { return 0; } + }; + + class Bar {}; +%} + +%template(Foo1) Foo; +%template(Foo2) Foo; +