diff options
| author | David Blaikie <dblaikie@gmail.com> | 2014-04-02 05:58:29 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2014-04-02 05:58:29 +0000 |
| commit | abe1a398e33bac03596116c97a7375d074101903 (patch) | |
| tree | 4cbee2b550744448b941c9d4b670dd7d565746ff /clang/test/Parser/cxx0x-lambda-expressions.cpp | |
| parent | 1ecad2c993a94fca00a713a0ae6665bb40758fb8 (diff) | |
| download | bcm5719-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/Parser/cxx0x-lambda-expressions.cpp')
| -rw-r--r-- | clang/test/Parser/cxx0x-lambda-expressions.cpp | 2 |
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 9ce24cbb04a..53ea05ea860 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 *'}} |

