From dbf8e12740a49ff84601600a9cd0938d125d2537 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Tue, 10 Dec 2002 23:19:49 +0000 Subject: [PATCH] Added broken test for template + specialization + defarg git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4170 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/test-suite/common.mk | 1 + .../template_specialization_defarg.i | 60 +++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 Examples/test-suite/template_specialization_defarg.i diff --git a/Examples/test-suite/common.mk b/Examples/test-suite/common.mk index ed8cebcd7..45f127b66 100644 --- a/Examples/test-suite/common.mk +++ b/Examples/test-suite/common.mk @@ -46,6 +46,7 @@ CPP_TEST_BROKEN = \ abstract_typedef \ namespace_nested \ template_default_arg \ + template_specialization_defarg \ using_namespace CPP_TEST_CASES += $(CPP_TEST_BROKEN) diff --git a/Examples/test-suite/template_specialization_defarg.i b/Examples/test-suite/template_specialization_defarg.i new file mode 100644 index 000000000..0c944df01 --- /dev/null +++ b/Examples/test-suite/template_specialization_defarg.i @@ -0,0 +1,60 @@ +%module template_specialization_defarg + +%inline %{ + + template + struct C + { + }; + + + template + struct C + { + int hi() + { + return 0; + } + + C(int a = 0) + { + } + + protected: + C() + { + } + }; + + + template + struct C + { + int hello() + { + return 0; + } + + C(double a = 0) + { + } + + protected: + C() + { + } + }; + + +%} + + +// +// This works fine +// +%template(C_i) C; + +// +// This one fails +// +%template(C_d) C;