diff --git a/clang/test/SemaObjC/blocks.m b/clang/test/SemaObjC/blocks.m index 73454022ba4d..b27d65d833ca 100644 --- a/clang/test/SemaObjC/blocks.m +++ b/clang/test/SemaObjC/blocks.m @@ -39,5 +39,5 @@ void foo7(id (^x)(int)) { @end void foo8() { - ^(itf x) {}; + void *P = ^(itf x) {}; // expected-error {{Objective-C interface type 'itf' cannot be passed by value}} }