r184465 - Add test.

Eli Friedman eli.friedman at gmail.com
Thu Jun 20 13:56:57 PDT 2013


Author: efriedma
Date: Thu Jun 20 15:56:57 2013
New Revision: 184465

URL: http://llvm.org/viewvc/llvm-project?rev=184465&view=rev
Log:
Add test.


Modified:
    cfe/trunk/test/SemaTemplate/nested-template.cpp

Modified: cfe/trunk/test/SemaTemplate/nested-template.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaTemplate/nested-template.cpp?rev=184465&r1=184464&r2=184465&view=diff
==============================================================================
--- cfe/trunk/test/SemaTemplate/nested-template.cpp (original)
+++ cfe/trunk/test/SemaTemplate/nested-template.cpp Thu Jun 20 15:56:57 2013
@@ -135,6 +135,7 @@ namespace PR10896 {
 	
     template<typename T>
     T SomeField; // expected-error {{member 'SomeField' declared as a template}}
+    template<> int SomeField2; // expected-error {{extraneous 'template<>' in declaration of member 'SomeField2'}}
   };
 
   void g() {





More information about the cfe-commits mailing list