xref: /llvm-project/clang/test/SemaCXX/namespace-alias.cpp (revision dca83c467665b24359a7638f245f1680482a3d3f)
1 // RUN: clang-cc -fsyntax-only -verify %s
2 
3 namespace N { };
4 
5 namespace A = N;
6 
7 int B; // expected-note {{previous definition is here}}
8 namespace B = N; // expected-error {{redefinition of 'B' as different kind of symbol}}
9 
10 namespace C { } // expected-note {{previous definition is here}}
11 namespace C = N; // expected-error {{redefinition of 'C'}}
12