diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-04-05 23:13:23 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-04-05 23:13:23 +0000 |
commit | bf9658c3c200ee19bf0b6b157149f2376e39d270 (patch) | |
tree | c6d32c9cd0ec93988cd6d3e9897550902c447ca0 /test/SemaCXX | |
parent | bc1029b4a47282cb4ce27c7014acb864b10a4043 (diff) |
Point the caret at the error for the 'expected namespace name' diagnostic in
a namespace alias declaration.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154138 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX')
-rw-r--r-- | test/SemaCXX/namespace-alias.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/SemaCXX/namespace-alias.cpp b/test/SemaCXX/namespace-alias.cpp index 52cae2e92f..e18b58b4d4 100644 --- a/test/SemaCXX/namespace-alias.cpp +++ b/test/SemaCXX/namespace-alias.cpp @@ -11,9 +11,13 @@ namespace C { } // expected-note {{previous definition is here}} namespace C = N; // expected-error {{redefinition of 'C'}} int i; -namespace D = i; // expected-error {{expected namespace name}} +namespace D = +i; // expected-error {{expected namespace name}} -namespace E = N::Foo; // expected-error {{expected namespace name}} +namespace E1 = N:: +Foo; // expected-error {{expected namespace name}} +namespace E2 = N:: +X; // expected-error {{expected namespace name}} namespace F { namespace A { namespace B { } } // expected-note {{candidate found by name lookup is 'F::A::B'}} |