summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/namespaces.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-02-14 22:12:54 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-02-14 22:12:54 +0000
commit8972f4e96650c0fed11cec168562a1a8de8418ac (patch)
treec8ecbf14133e008d04a0a39e187a15942403a4b5 /clang/test/Modules/namespaces.cpp
parent2e66bfc9a1113c46d6a0ef004c713a56af6726c5 (diff)
downloadbcm5719-llvm-8972f4e96650c0fed11cec168562a1a8de8418ac.tar.gz
bcm5719-llvm-8972f4e96650c0fed11cec168562a1a8de8418ac.zip
Consistently print anonymous namespace names as "<anonymous namespace>"
For some reason we have two bits of code handling this printing: lib/AST/Decl.cpp: OS << "<anonymous namespace>"; lib/AST/TypePrinter.cpp: OS << "<anonymous namespace>::"; it would be nice if we only had one... llvm-svn: 201437
Diffstat (limited to 'clang/test/Modules/namespaces.cpp')
-rw-r--r--clang/test/Modules/namespaces.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Modules/namespaces.cpp b/clang/test/Modules/namespaces.cpp
index 8c225e051bd..003c7d36b8d 100644
--- a/clang/test/Modules/namespaces.cpp
+++ b/clang/test/Modules/namespaces.cpp
@@ -69,8 +69,8 @@ void testMergedMerged() {
// Test merging when using anonymous namespaces, which does not
// actually perform any merging.
void testAnonymousNotMerged() {
- N11::consumeFoo(N11::getFoo()); // expected-error{{cannot initialize a parameter of type 'N11::<anonymous>::Foo *' with an rvalue of type 'N11::<anonymous>::Foo *'}}
- N12::consumeFoo(N12::getFoo()); // expected-error{{cannot initialize a parameter of type 'N12::<anonymous>::Foo *' with an rvalue of type 'N12::<anonymous>::Foo *'}}
+ N11::consumeFoo(N11::getFoo()); // expected-error{{cannot initialize a parameter of type 'N11::<anonymous namespace>::Foo *' with an rvalue of type 'N11::<anonymous namespace>::Foo *'}}
+ N12::consumeFoo(N12::getFoo()); // expected-error{{cannot initialize a parameter of type 'N12::<anonymous namespace>::Foo *' with an rvalue of type 'N12::<anonymous namespace>::Foo *'}}
}
// expected-note@Inputs/namespaces-right.h:60 {{passing argument to parameter here}}
OpenPOWER on IntegriCloud