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
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits