llvm-for-llvmta/tools/clang/test/Parser/cxx-namespace-alias.cpp

10 lines
306 B
C++
Raw Normal View History

2022-04-25 13:02:35 +02:00
// 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'}}