aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Parser/cxx0x-lambda-expressions.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/Parser/cxx0x-lambda-expressions.cpp
parent1ecad2c993a94fca00a713a0ae6665bb40758fb8 (diff)
downloadllvm-abe1a398e33bac03596116c97a7375d074101903.zip
llvm-abe1a398e33bac03596116c97a7375d074101903.tar.gz
llvm-abe1a398e33bac03596116c97a7375d074101903.tar.bz2
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/Parser/cxx0x-lambda-expressions.cpp')
-rw-r--r--clang/test/Parser/cxx0x-lambda-expressions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Parser/cxx0x-lambda-expressions.cpp b/clang/test/Parser/cxx0x-lambda-expressions.cpp
index 9ce24cb..53ea05e 100644
--- a/clang/test/Parser/cxx0x-lambda-expressions.cpp
+++ b/clang/test/Parser/cxx0x-lambda-expressions.cpp
@@ -34,7 +34,7 @@ class C {
typedef int T;
const int b = 0;
const int c = 1;
- int a1[1] = {[b] (T()) {}}; // expected-error{{no viable conversion from '<lambda}}
+ int a1[1] = {[b] (T()) {}}; // expected-error{{no viable conversion from '(lambda}}
int a2[1] = {[b] = 1 };
int a3[1] = {[b,c] = 1 }; // expected-error{{expected body of lambda expression}}
int a4[1] = {[&b] = 1 }; // expected-error{{integral constant expression must have integral or unscoped enumeration type, not 'const int *'}}