From c1826a52ea0e22c521795c4d4a0c2d486825a239 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Thu, 20 Jun 2013 20:56:57 +0000 Subject: [PATCH] Add test. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184465 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/SemaTemplate/nested-template.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/test/SemaTemplate/nested-template.cpp b/test/SemaTemplate/nested-template.cpp index 47502536ca..44cb82e95b 100644 --- a/test/SemaTemplate/nested-template.cpp +++ b/test/SemaTemplate/nested-template.cpp @@ -135,6 +135,7 @@ namespace PR10896 { template T SomeField; // expected-error {{member 'SomeField' declared as a template}} + template<> int SomeField2; // expected-error {{extraneous 'template<>' in declaration of member 'SomeField2'}} }; void g() { -- 2.40.0