summaryrefslogtreecommitdiff
path: root/clang/test/Parser/cxx-namespace-alias.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Parser/cxx-namespace-alias.cpp')
-rw-r--r--clang/test/Parser/cxx-namespace-alias.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Parser/cxx-namespace-alias.cpp b/clang/test/Parser/cxx-namespace-alias.cpp
new file mode 100644
index 0000000..9b90aab
--- /dev/null
+++ b/clang/test/Parser/cxx-namespace-alias.cpp
@@ -0,0 +1,9 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+
+namespace A = B; // expected-error{{namespace name}}
+
+namespace A = !; // expected-error {{expected namespace name}}
+namespace A = A::!; // expected-error {{expected namespace name}} \
+ // expected-error{{use of undeclared identifier 'A'}}
+
+