minix/external/bsd/llvm/dist/clang/test/Parser/cxx-namespace-alias.cpp

10 lines
306 B
C++
Raw Normal View History

// 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'}}