diff options
author | Jeffrey Yasskin <jyasskin@google.com> | 2010-04-07 23:29:58 +0000 |
---|---|---|
committer | Jeffrey Yasskin <jyasskin@google.com> | 2010-04-07 23:29:58 +0000 |
commit | 4e150f8d35ac8e67a765eed0d3be2914e7bec61d (patch) | |
tree | 69371dfe3f4547ff54105fde146d1f7d7b0648ed /clang/test | |
parent | eb7111b98fb6281deb9d40dc9f1bf737ae770b14 (diff) | |
download | bcm5719-llvm-4e150f8d35ac8e67a765eed0d3be2914e7bec61d.tar.gz bcm5719-llvm-4e150f8d35ac8e67a765eed0d3be2914e7bec61d.zip |
Fix some redundant errors by changing CXXScopeSpec::isSet calls into
isNotEmpty calls.
llvm-svn: 100722
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/SemaCXX/nested-name-spec.cpp | 6 | ||||
-rw-r--r-- | clang/test/SemaTemplate/explicit-specialization-member.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/SemaCXX/nested-name-spec.cpp b/clang/test/SemaCXX/nested-name-spec.cpp index 9a611c38ad6..c6b11cfefe5 100644 --- a/clang/test/SemaCXX/nested-name-spec.cpp +++ b/clang/test/SemaCXX/nested-name-spec.cpp @@ -13,9 +13,9 @@ namespace A { } A:: ; // expected-error {{expected unqualified-id}} -// FIXME: redundant errors -::A::ax::undef ex3; // expected-error {{no member named}} expected-error {{unknown type name}} -A::undef1::undef2 ex4; // expected-error {{no member named 'undef1'}} expected-error {{unknown type name}} +// FIXME: there is a member 'ax'; it's just not a class. +::A::ax::undef ex3; // expected-error {{no member named 'ax'}} +A::undef1::undef2 ex4; // expected-error {{no member named 'undef1'}} int A::C::Ag1() { return 0; } diff --git a/clang/test/SemaTemplate/explicit-specialization-member.cpp b/clang/test/SemaTemplate/explicit-specialization-member.cpp index cb0a39a9d0c..417cdc1f198 100644 --- a/clang/test/SemaTemplate/explicit-specialization-member.cpp +++ b/clang/test/SemaTemplate/explicit-specialization-member.cpp @@ -16,7 +16,7 @@ namespace PR6161 { // expected-error{{expected class name}} \ // expected-note{{attempt to specialize declaration here}} { - static locale::id id; // expected-error{{use of undeclared identifier}} FIXME: expected-error {{unknown type 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}} |