summaryrefslogtreecommitdiffstats
path: root/test/Parser/cxx-using-declaration.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Parser/cxx-using-declaration.cpp')
-rw-r--r--test/Parser/cxx-using-declaration.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/Parser/cxx-using-declaration.cpp b/test/Parser/cxx-using-declaration.cpp
index 2b2a69d..320fd09 100644
--- a/test/Parser/cxx-using-declaration.cpp
+++ b/test/Parser/cxx-using-declaration.cpp
@@ -43,3 +43,19 @@ using F::X;
// Should have some errors here. Waiting for implementation.
void X(int);
struct X *x;
+
+
+namespace ShadowedTagNotes {
+
+namespace foo {
+ class Bar {};
+}
+
+void Bar(int); // expected-note{{class 'Bar' is hidden by a non-type declaration of 'Bar' here}}
+using foo::Bar;
+
+void ambiguity() {
+ const Bar *x; // expected-error{{must use 'class' tag to refer to type 'Bar' in this scope}}
+}
+
+} // namespace ShadowedTagNotes
OpenPOWER on IntegriCloud