diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2013-06-20 20:56:57 +0000 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2013-06-20 20:56:57 +0000 |
| commit | 65615d40175ac7f602e7d252bd85db88d2a25fcc (patch) | |
| tree | 733936ba7d8395870b2bc40b727c9ba293d8d2ad | |
| parent | 4a3365c8698222da6bd060cd388ef9c8ac23452c (diff) | |
| download | bcm5719-llvm-65615d40175ac7f602e7d252bd85db88d2a25fcc.tar.gz bcm5719-llvm-65615d40175ac7f602e7d252bd85db88d2a25fcc.zip | |
Add test.
llvm-svn: 184465
| -rw-r--r-- | clang/test/SemaTemplate/nested-template.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/nested-template.cpp b/clang/test/SemaTemplate/nested-template.cpp index 47502536caf..44cb82e95bb 100644 --- a/clang/test/SemaTemplate/nested-template.cpp +++ b/clang/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() { |

