]> granicus.if.org Git - clang/commitdiff
Add an additional testcase for a lambda with implicit void return type.
authorEli Friedman <eli.friedman@gmail.com>
Thu, 26 Jan 2012 03:16:41 +0000 (03:16 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Thu, 26 Jan 2012 03:16:41 +0000 (03:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149034 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/lambda-expressions.cpp

index db934c3ab77b6a8014f70255e0195e184281f2e3..0223b50755eed71323ccd26960860cf1e852cde8 100644 (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}}
   }