diff options
Diffstat (limited to 'test/SemaTemplate/nested-template.cpp')
-rw-r--r-- | test/SemaTemplate/nested-template.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/SemaTemplate/nested-template.cpp b/test/SemaTemplate/nested-template.cpp index 47502536caf7..44cb82e95bbf 100644 --- a/test/SemaTemplate/nested-template.cpp +++ b/test/SemaTemplate/nested-template.cpp @@ -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() { |