[cfe-commits] r153200 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaStmt.cpp test/Sema/block-return.c

jahanian fjahanian at apple.com
Wed Mar 21 13:34:43 PDT 2012


On Mar 21, 2012, at 11:45 AM, Richard Smith wrote:

> 
>   } else if (!RetValExp) {
>     return StmtError(Diag(ReturnLoc, diag::err_block_return_missing_expr));
> 
> Modified: cfe/trunk/test/Sema/block-return.c
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/block-return.c?rev=153200&r1=153199&r2=153200&view=diff
> ==============================================================================
> --- cfe/trunk/test/Sema/block-return.c (original)
> +++ cfe/trunk/test/Sema/block-return.c Wed Mar 21 11:45:13 2012
> @@ -1,4 +1,4 @@
> -// RUN: %clang_cc1 -fsyntax-only %s -verify -fblocks
> +// RUN: %clang_cc1 -pedantic -fsyntax-only %s -verify -fblocks
> 
>  typedef void (^CL)(void);
> 
> @@ -130,4 +130,7 @@
>   int (^NN) (void)  = ^{ return cint; };
>  }
> 
> -
> +// rdar://11069896
> +void (^blk)(void) = ^{
> +    return (void)0; // expected-warning {{void block  should not return void expression}}
> +};
> 
> The empty %0 has left two spaces in a row in this warning.

Thanks. Fixed in r153217.

- Fariborz


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120321/107914eb/attachment.html>


More information about the cfe-commits mailing list