1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 %s -fsyntax-only -verify -fblocks 2*f4a2713aSLionel Sambuc// expected-no-diagnostics 3*f4a2713aSLionel Sambuc 4*f4a2713aSLionel Sambuc@interface Whatever 5*f4a2713aSLionel Sambuc- copy; 6*f4a2713aSLionel Sambuc@end 7*f4a2713aSLionel Sambuc 8*f4a2713aSLionel Sambuctypedef long (^MyBlock)(id obj1, id obj2); 9*f4a2713aSLionel Sambuc 10*f4a2713aSLionel Sambucvoid foo(MyBlock b) { 11*f4a2713aSLionel Sambuc id bar = [b copy]; 12*f4a2713aSLionel Sambuc} 13*f4a2713aSLionel Sambuc 14*f4a2713aSLionel Sambucvoid foo2(id b) { 15*f4a2713aSLionel Sambuc} 16*f4a2713aSLionel Sambuc 17*f4a2713aSLionel Sambucvoid foo3(void (^block)(void)) { 18*f4a2713aSLionel Sambuc foo2(block); 19*f4a2713aSLionel Sambuc id x; 20*f4a2713aSLionel Sambuc foo(x); 21*f4a2713aSLionel Sambuc} 22