]> granicus.if.org Git - clang/commitdiff
fix test
authorChris Lattner <sabre@nondot.org>
Sat, 11 Apr 2009 19:18:22 +0000 (19:18 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 11 Apr 2009 19:18:22 +0000 (19:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68874 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaObjC/blocks.m

index 73454022ba4df78bd09beba2e2bfd2eee591f49e..b27d65d833ca7fefb3e49214bfb512b70ce9e534 100644 (file)
@@ -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}}
 }