From 12dbbf13cc47ce6b72957fed649c78db17e23a26 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sat, 4 Jul 2015 15:07:38 +0100 Subject: Correct testcase use of typename to be inside a template II --- Examples/test-suite/template_keyword_in_type.i | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Examples/test-suite/template_keyword_in_type.i b/Examples/test-suite/template_keyword_in_type.i index 4b1107104..27765c648 100644 --- a/Examples/test-suite/template_keyword_in_type.i +++ b/Examples/test-suite/template_keyword_in_type.i @@ -14,12 +14,12 @@ #if defined(SWIG) || defined(__clang__) // gcc doesn't parse this (tested with gcc-4.8) - void testXXX1(::template XXX::template YYY::type xx) {} + template void testXXX1(::template XXX::template YYY::type xx) {} #else - void testXXX1(:: XXX::template YYY::type xx) {} + template void testXXX1(:: XXX::template YYY::type xx) {} #endif - void testXXX2(XXX::YYY::type xx) {} - typedef ::XXX::template YYY::type templatetyped; + template void testXXX2(XXX::YYY::type xx) {} + template void testXXX3(::XXX::template YYY::type) {} %} %inline %{ -- cgit v1.2.1