summaryrefslogtreecommitdiffstats
path: root/test/SemaTemplate/temp_explicit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaTemplate/temp_explicit.cpp')
-rw-r--r--test/SemaTemplate/temp_explicit.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/SemaTemplate/temp_explicit.cpp b/test/SemaTemplate/temp_explicit.cpp
index 9c824d6..ae409af 100644
--- a/test/SemaTemplate/temp_explicit.cpp
+++ b/test/SemaTemplate/temp_explicit.cpp
@@ -108,3 +108,20 @@ struct X6 {
};
template struct X6::Inner; // expected-error{{non-templated}}
+
+// PR5559
+template <typename T>
+struct Foo;
+
+template <>
+struct Foo<int> // expected-note{{header not required for explicitly-specialized}}
+{
+ template <typename U>
+ struct Bar
+ {};
+};
+
+template <> // expected-warning{{extraneous template parameter list}}
+template <>
+struct Foo<int>::Bar<void>
+{};
OpenPOWER on IntegriCloud