blob: 7d46d08678a3a7038e6f84104fb6cc2600f13c34 [file] [log] [blame]
Anders Carlsson8d7ba402009-03-28 06:23:46 +00001// RUN: clang-cc -fsyntax-only -verify %s
2
3namespace N { };
4
5namespace A = N;
6
7int B; // expected-note {{previous definition is here}}
8namespace B = N; // expected-error {{redefinition of 'B' as different kind of symbol}}
9
10namespace C { } // expected-note {{previous definition is here}}
11namespace C = N; // expected-error {{redefinition of 'C'}}
Anders Carlsson5721c682009-03-28 06:42:02 +000012
13int i;
14namespace D = i; // expected-error {{expected namespace name}}
15
16namespace E = N::Foo; // expected-error {{expected namespace name}}