summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2015-07-04 15:07:38 +0100
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2015-07-04 15:07:38 +0100
commit12dbbf13cc47ce6b72957fed649c78db17e23a26 (patch)
treea056dfaa7dc038620398bfaed3045573ec5a7035
parentfe39ef5faee7c66a87053096c41ab1bbace9c26a (diff)
downloadswig-12dbbf13cc47ce6b72957fed649c78db17e23a26.tar.gz
Correct testcase use of typename to be inside a template II
-rw-r--r--Examples/test-suite/template_keyword_in_type.i8
1 files 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<int>::template YYY<int>::type xx) {}
+ template<typename X> void testXXX1(::template XXX<int>::template YYY<int>::type xx) {}
#else
- void testXXX1(:: XXX<int>::template YYY<int>::type xx) {}
+ template<typename X> void testXXX1(:: XXX<int>::template YYY<int>::type xx) {}
#endif
- void testXXX2(XXX<int>::YYY<int>::type xx) {}
- typedef ::XXX<int>::template YYY<int>::type templatetyped;
+ template<typename X> void testXXX2(XXX<int>::YYY<int>::type xx) {}
+ template<typename X> void testXXX3(::XXX<int>::template YYY<int>::type) {}
%}
%inline %{