diff options
author | dim <dim@FreeBSD.org> | 2011-02-20 13:06:31 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2011-02-20 13:06:31 +0000 |
commit | 39fcc9a984e2820e4ea0fa2ac4abd17d9f3a31df (patch) | |
tree | a9243275843fbeaa590afc07ee888e006b8d54ea /test/SemaTemplate/explicit-specialization-member.cpp | |
parent | 69b4eca4a4255ba43baa5c1d9bbdec3ec17f479e (diff) | |
download | FreeBSD-src-39fcc9a984e2820e4ea0fa2ac4abd17d9f3a31df.zip FreeBSD-src-39fcc9a984e2820e4ea0fa2ac4abd17d9f3a31df.tar.gz |
Vendor import of clang trunk r126079:
http://llvm.org/svn/llvm-project/cfe/trunk@126079
Diffstat (limited to 'test/SemaTemplate/explicit-specialization-member.cpp')
-rw-r--r-- | test/SemaTemplate/explicit-specialization-member.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/SemaTemplate/explicit-specialization-member.cpp b/test/SemaTemplate/explicit-specialization-member.cpp index 417cdc1..7fe6bf3 100644 --- a/test/SemaTemplate/explicit-specialization-member.cpp +++ b/test/SemaTemplate/explicit-specialization-member.cpp @@ -13,11 +13,9 @@ template<> void X0<char>::f1(type); namespace PR6161 { template<typename _CharT> class numpunct : public locale::facet // expected-error{{use of undeclared identifier 'locale'}} \ - // expected-error{{expected class name}} \ - // expected-note{{attempt to specialize declaration here}} + // expected-error{{expected class name}} { static locale::id id; // expected-error{{use of undeclared identifier}} }; - numpunct<char>::~numpunct(); // expected-error{{template specialization requires 'template<>'}} \ - // expected-error{{specialization of member 'PR6161::numpunct<char>::~numpunct' does not specialize an instantiated member}} + numpunct<char>::~numpunct(); // expected-error{{expected the class name after '~' to name a destructor}} } |