diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2012-01-26 03:00:14 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2012-01-26 03:00:14 +0000 |
commit | 84b007fae6c0cd30fa07074d34fbe2bf61fa44f9 (patch) | |
tree | 0dea52c0e79905f26bfa3bd92e6123688142daaa /test/Parser/objcxx0x-lambda-expressions.mm | |
parent | 61d679ab2831b161c857cf3f974312fbd4ef1efd (diff) |
Refactor to share code for handling return statements between lambda expressions and block literals. As it turns out, almost all the logic can be shared.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149031 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, 1 insertions, 2 deletions
diff --git a/test/Parser/objcxx0x-lambda-expressions.mm b/test/Parser/objcxx0x-lambda-expressions.mm index 06573b9446..5cfb4f8c5a 100644 --- a/test/Parser/objcxx0x-lambda-expressions.mm +++ b/test/Parser/objcxx0x-lambda-expressions.mm @@ -14,8 +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: 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,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}} } |