diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2012-01-07 04:59:52 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2012-01-07 04:59:52 +0000 |
commit | 72899c34e3d1abfffa241ad0ce5c4bf175e5ea51 (patch) | |
tree | 2a9209442a417053e832e18b7a3416e787789642 /test/Parser/objcxx0x-lambda-expressions.mm | |
parent | 9f03b62036a7abc0a227b17f4a49b9eefced9450 (diff) |
More lambda work: semantic analysis of capturing 'this'. It's a bit complicated, but we have to be careful about when exactly captures are marked given PotentiallyPotentiallyEvaluated contexts. (Actually, it's not 100% correct yet, but it's close enough for the moment.)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147723 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/objcxx0x-lambda-expressions.mm')
-rw-r--r-- | test/Parser/objcxx0x-lambda-expressions.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/Parser/objcxx0x-lambda-expressions.mm b/test/Parser/objcxx0x-lambda-expressions.mm index 5cfb4f8c5a..06573b9446 100644 --- a/test/Parser/objcxx0x-lambda-expressions.mm +++ b/test/Parser/objcxx0x-lambda-expressions.mm @@ -14,7 +14,8 @@ 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}} - [foo,bar] () { return 3; }; // expected-error {{lambda expressions are not supported yet}} + // FIXME: Implicit return type deduction doesn't work yet. + [foo,bar] () { return 3; }; // expected-error {{void function 'f' should not return a value}} 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}} } |