blob: 219b1a065325e8e4e296cd5b555a2b7b5891925e [file] [log] [blame]
// RUN: clang-cc %s -fsyntax-only -verify -fblocks
@interface Whatever
- copy;
@end
typedef long (^MyBlock)(id obj1, id obj2);
void foo(MyBlock b) {
id bar = [b copy];
}
void foo2(id b) {
}
void foo3(void (^block)(void)) {
foo2(block);
id x;
foo(x);
}