summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/undefined-internal.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/SemaCXX/undefined-internal.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/SemaCXX/undefined-internal.cpp')
-rw-r--r--clang/test/SemaCXX/undefined-internal.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/SemaCXX/undefined-internal.cpp b/clang/test/SemaCXX/undefined-internal.cpp
index 9d3048dc2e2..67ad110fb34 100644
--- a/clang/test/SemaCXX/undefined-internal.cpp
+++ b/clang/test/SemaCXX/undefined-internal.cpp
@@ -78,8 +78,8 @@ namespace test5 {
}
template <class N> struct B {
- static int var; // expected-warning {{variable 'test5::B<test5::<anonymous>::A>::var' has internal linkage but is not defined}}
- static void foo(); // expected-warning {{function 'test5::B<test5::<anonymous>::A>::foo' has internal linkage but is not defined}}
+ static int var; // expected-warning {{variable 'test5::B<test5::<anonymous namespace>::A>::var' has internal linkage but is not defined}}
+ static void foo(); // expected-warning {{function 'test5::B<test5::<anonymous namespace>::A>::foo' has internal linkage but is not defined}}
};
void test() {
OpenPOWER on IntegriCloud