diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2012-01-05 03:35:19 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2012-01-05 03:35:19 +0000 |
commit | ec9ea7200718478e8a976529defbe21942a11c9c (patch) | |
tree | 52de9c7edea7849591dbf5b5438dbc0a46748293 /test/Parser/objcxx0x-lambda-expressions.mm | |
parent | edb9459c43dec5f376020f2b53833dee6549e11d (diff) |
More lambda work. Tweak the Sema interface slightly. Start adding the pieces to build the lambda class and its call operator. Create an actual scope for the lambda body.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147595 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/objcxx0x-lambda-expressions.mm')
-rw-r--r-- | test/Parser/objcxx0x-lambda-expressions.mm | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/Parser/objcxx0x-lambda-expressions.mm b/test/Parser/objcxx0x-lambda-expressions.mm index b9a96d6b2d..5cfb4f8c5a 100644 --- a/test/Parser/objcxx0x-lambda-expressions.mm +++ b/test/Parser/objcxx0x-lambda-expressions.mm @@ -14,10 +14,7 @@ class C { [] {}; // expected-error {{lambda expressions are not supported yet}} [=] (int i) {}; // expected-error {{lambda expressions are not supported yet}} [&] (int) mutable -> void {}; // expected-error {{lambda expressions are not supported yet}} - // FIXME: this error occurs because we do not yet handle lambda scopes - // properly. I did not anticipate it because I thought it was a semantic (not - // syntactic) check. - [foo,bar] () { return 3; }; // expected-error {{void function 'f' should not return a value}} expected-error {{lambda expressions are not supported yet}} + [foo,bar] () { return 3; }; // expected-error {{lambda expressions are not supported yet}} [=,&foo] () {}; // expected-error {{lambda expressions are not supported yet}} [this] () {}; // expected-error {{lambda expressions are not supported yet}} } |