diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2012-01-04 02:40:39 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2012-01-04 02:40:39 +0000 |
commit | c7c97144afcb8a7ceeadd3d56ee0b25acd43856b (patch) | |
tree | f46bd2ff2dea61e99cae041908811228d230f1bd /clang/test/Parser/cxx0x-lambda-expressions.cpp | |
parent | cc1d7893d6e80ac3aa9240df01bdda50ece48db8 (diff) | |
download | bcm5719-llvm-c7c97144afcb8a7ceeadd3d56ee0b25acd43856b.tar.gz bcm5719-llvm-c7c97144afcb8a7ceeadd3d56ee0b25acd43856b.zip |
Stub out the Sema interface for lambda expressions, and change the parser to use it. Unconditionally error on lambda expressions because they don't work in any meaningful way yet.
llvm-svn: 147515
Diffstat (limited to 'clang/test/Parser/cxx0x-lambda-expressions.cpp')
-rw-r--r-- | clang/test/Parser/cxx0x-lambda-expressions.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/clang/test/Parser/cxx0x-lambda-expressions.cpp b/clang/test/Parser/cxx0x-lambda-expressions.cpp index 4fa4e6f1b99..df8d804931d 100644 --- a/clang/test/Parser/cxx0x-lambda-expressions.cpp +++ b/clang/test/Parser/cxx0x-lambda-expressions.cpp @@ -12,13 +12,13 @@ class C { [&this] {}; // expected-error {{'this' cannot be captured by reference}} [&,] {}; // expected-error {{expected variable name or 'this' in lambda capture list}} [=,] {}; // expected-error {{expected variable name or 'this' in lambda capture list}} - [] {}; - [=] (int i) {}; - [&] (int) mutable -> void {}; - [foo,bar] () { return 3; }; - [=,&foo] () {}; - [&,foo] () {}; - [this] () {}; + [] {}; // 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}} + [=,&foo] () {}; // 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}} return 1; } |