summaryrefslogtreecommitdiff
path: root/clang/test/Parser/cxx-namespace-alias.cpp
blob: 9b90aabb861bf6ba56b1fc3dd8996adc02ff07d2 (about) (plain)
1
2
3
4
5
6
7
8
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'}}