summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/objcxx0x-lambda-expressions.mm
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2012-01-05 03:35:19 +0000
committerEli Friedman <eli.friedman@gmail.com>2012-01-05 03:35:19 +0000
commit71c8055f8e335310d1feb2b35fc4b6677b2a1d43 (patch)
tree1be608fd7819952c6e2dcd72ab0a2618442863ec /clang/test/Parser/objcxx0x-lambda-expressions.mm
parent100af0adf79e92b51b2c5a6f7790f84d08290f53 (diff)
downloadbcm5719-llvm-71c8055f8e335310d1feb2b35fc4b6677b2a1d43.tar.gz
bcm5719-llvm-71c8055f8e335310d1feb2b35fc4b6677b2a1d43.zip
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.
llvm-svn: 147595
Diffstat (limited to 'clang/test/Parser/objcxx0x-lambda-expressions.mm')
-rw-r--r--clang/test/Parser/objcxx0x-lambda-expressions.mm5
1 files changed, 1 insertions, 4 deletions
diff --git a/clang/test/Parser/objcxx0x-lambda-expressions.mm b/clang/test/Parser/objcxx0x-lambda-expressions.mm
index b9a96d6b2df..5cfb4f8c5a7 100644
--- a/clang/test/Parser/objcxx0x-lambda-expressions.mm
+++ b/clang/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}}
}
OpenPOWER on IntegriCloud