Add an additional testcase for a lambda with implicit void return type.

llvm-svn: 149034
This commit is contained in:
Eli Friedman 2012-01-26 03:16:41 +00:00
parent 34d9a17778
commit f49643ddce
1 changed files with 1 additions and 0 deletions

View File

@ -61,6 +61,7 @@ namespace ReturnDeduction {
[](){ 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}}
}