[cfe-commits] r149034 - /cfe/trunk/test/SemaCXX/lambda-expressions.cpp
Eli Friedman
eli.friedman at gmail.com
Wed Jan 25 19:16:41 PST 2012
Author: efriedma
Date: Wed Jan 25 21:16:41 2012
New Revision: 149034
URL: http://llvm.org/viewvc/llvm-project?rev=149034&view=rev
Log:
Add an additional testcase for a lambda with implicit void return type.
Modified:
cfe/trunk/test/SemaCXX/lambda-expressions.cpp
Modified: cfe/trunk/test/SemaCXX/lambda-expressions.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/lambda-expressions.cpp?rev=149034&r1=149033&r2=149034&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/lambda-expressions.cpp (original)
+++ cfe/trunk/test/SemaCXX/lambda-expressions.cpp Wed Jan 25 21:16:41 2012
@@ -61,6 +61,7 @@
[](){ return ({return 'c'; 1;}); }; // expected-error {{not supported yet}} expected-error {{must match previous return type}}
[]()->int{ return 'c'; return 1; }; // expected-error {{not supported yet}}
[](){ return 'c'; return 1; }; // expected-error {{not supported yet}} expected-error {{must match previous return type}}
+ []() { return; return (void)0; }; // expected-error {{not supported yet}}
// FIXME: Need to check structure of lambda body
[](){ return 1; return 1; }; // expected-error {{not supported yet}}
}
More information about the cfe-commits
mailing list