1 // RUN: clang-cc -fsyntax-only -verify %s
7 int B
; // expected-note {{previous definition is here}}
8 namespace B
= N
; // expected-error {{redefinition of 'B' as different kind of symbol}}
10 namespace C
{ } // expected-note {{previous definition is here}}
11 namespace C
= N
; // expected-error {{redefinition of 'C'}}
14 namespace D
= i
; // expected-error {{expected namespace name}}
16 namespace E
= N::Foo
; // expected-error {{expected namespace name}}
19 namespace A
{ namespace B
{ } } // expected-note {{candidate found by name lookup is 'F::A::B'}}
20 namespace B
{ } // expected-note {{candidate found by name lookup is 'F::B'}}
22 namespace D
= B
; // expected-error {{reference to 'B' is ambiguous}}
33 // These all point to A1.
34 namespace B
= A1
; // expected-note {{previous definition is here}}
39 namespace B
= A2
; // expected-error {{redefinition of 'B' as different kind of symbol}}
43 namespace A1
{ int i
; }
54 namespace B
{ void func (); }