summaryrefslogtreecommitdiff
path: root/test/SemaCXX/using-decl-1.cpp
diff options
context:
space:
mode:
authorKaelyn Uhrain <rikka@google.com>2013-10-19 00:04:52 +0000
committerKaelyn Uhrain <rikka@google.com>2013-10-19 00:04:52 +0000
commit6e4f6f865010649bc3969e57436b5501544a0c39 (patch)
treebd8fc69d81859358619b502ad7b076626a711ad4 /test/SemaCXX/using-decl-1.cpp
parenta831f17b233fb2f3c8422a45c58b7d0bc67db959 (diff)
downloadclang-6e4f6f865010649bc3969e57436b5501544a0c39.tar.gz
Be smarter about deciding to add a leading '::' to a
NestedNameSpecifier that replaces an existing specifier. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193019 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/using-decl-1.cpp')
-rw-r--r--test/SemaCXX/using-decl-1.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/SemaCXX/using-decl-1.cpp b/test/SemaCXX/using-decl-1.cpp
index 41710cc909..24d92f175c 100644
--- a/test/SemaCXX/using-decl-1.cpp
+++ b/test/SemaCXX/using-decl-1.cpp
@@ -139,24 +139,24 @@ using typename N::FFG; // expected-error {{no member named 'FFG' in namespace 'u
// Currently hints aren't provided to drop out the incorrect M::.
namespace using_suggestion_ty_dropped_nested_specifier {
namespace N {
-class AAA {};
+class AAA {}; // expected-note {{'N::AAA' declared here}}
namespace M { }
}
-using N::M::AAA; // expected-error {{no member named 'AAA' in namespace 'using_suggestion_ty_dropped_nested_specifier::N::M'}}
+using N::M::AAA; // expected-error {{no member named 'AAA' in namespace 'using_suggestion_ty_dropped_nested_specifier::N::M'; did you mean 'N::AAA'?}}
}
namespace using_suggestion_tyname_ty_dropped_nested_specifier {
namespace N {
-class AAA {};
+class AAA {}; // expected-note {{'N::AAA' declared here}}
namespace M { }
}
-using typename N::M::AAA; // expected-error {{no member named 'AAA' in namespace 'using_suggestion_tyname_ty_dropped_nested_specifier::N::M'}}
+using typename N::M::AAA; // expected-error {{no member named 'AAA' in namespace 'using_suggestion_tyname_ty_dropped_nested_specifier::N::M'; did you mean 'N::AAA'?}}
}
namespace using_suggestion_val_dropped_nested_specifier {
namespace N {
-void FFF() {}
+void FFF() {} // expected-note {{'N::FFF' declared here}}
namespace M { }
}
-using N::M::FFF; // expected-error {{no member named 'FFF' in namespace 'using_suggestion_val_dropped_nested_specifier::N::M'}}
+using N::M::FFF; // expected-error {{no member named 'FFF' in namespace 'using_suggestion_val_dropped_nested_specifier::N::M'; did you mean 'N::FFF'?}}
}