From 0b1294a732de7143294290ed2e2283859ee2ca56 Mon Sep 17 00:00:00 2001 From: Dave Beazley Date: Mon, 1 Sep 2003 18:23:08 +0000 Subject: [PATCH] new test git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5059 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/test-suite/common.mk | 1 + Examples/test-suite/template_partial_arg.i | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 Examples/test-suite/template_partial_arg.i 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; +