summaryrefslogtreecommitdiffstats
path: root/clang/test/OpenMP/threadprivate_messages.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-04-02 05:58:29 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-04-02 05:58:29 +0000
commitabe1a398e33bac03596116c97a7375d074101903 (patch)
tree4cbee2b550744448b941c9d4b670dd7d565746ff /clang/test/OpenMP/threadprivate_messages.cpp
parent1ecad2c993a94fca00a713a0ae6665bb40758fb8 (diff)
downloadbcm5719-llvm-abe1a398e33bac03596116c97a7375d074101903.tar.gz
bcm5719-llvm-abe1a398e33bac03596116c97a7375d074101903.zip
Render anonymous entities as '(anonymous <thing>)' (and lambdas as '(lambda at ... )')
For namespaces, this is consistent with mangling and GCC's debug info behavior. For structs, GCC uses <anonymous struct> but we prefer consistency between all anonymous entities but don't want to confuse them with template arguments, etc, so we'll just go with parens in all cases. llvm-svn: 205398
Diffstat (limited to 'clang/test/OpenMP/threadprivate_messages.cpp')
-rw-r--r--clang/test/OpenMP/threadprivate_messages.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/OpenMP/threadprivate_messages.cpp b/clang/test/OpenMP/threadprivate_messages.cpp
index 4e50c6f9d46..4b4f9e01463 100644
--- a/clang/test/OpenMP/threadprivate_messages.cpp
+++ b/clang/test/OpenMP/threadprivate_messages.cpp
@@ -99,9 +99,9 @@ static __thread int t; // expected-note {{'t' defined here}}
int o; // expected-note {{candidate found by name lookup is 'o'}}
#pragma omp threadprivate (o)
namespace {
-int o; // expected-note {{candidate found by name lookup is '<anonymous namespace>::o'}}
+int o; // expected-note {{candidate found by name lookup is '(anonymous namespace)::o'}}
#pragma omp threadprivate (o)
-#pragma omp threadprivate (o) // expected-error {{'#pragma omp threadprivate' must precede all references to variable '<anonymous namespace>::o'}}
+#pragma omp threadprivate (o) // expected-error {{'#pragma omp threadprivate' must precede all references to variable '(anonymous namespace)::o'}}
}
#pragma omp threadprivate (o) // expected-error {{reference to 'o' is ambiguous}}
#pragma omp threadprivate (::o) // expected-error {{'#pragma omp threadprivate' must precede all references to variable 'o'}}
OpenPOWER on IntegriCloud