blob: e9ca2238baba04e1111370038cd00105127fedc5 [file] [log] [blame]
Chris Lattnera66b4df2009-03-13 22:00:25 +00001// RUN: clang -emit-llvm -fblocks -S -o - %s
2// rdar://6676764
3
4struct S {
5 void (^F)(struct S*);
6} P;
7
8
9@interface T
10
11 - (int)foo: (T (^)(T*)) x;
12@end
13
14void foo(T *P) {
15 [P foo: 0];
16}
17
Mike Stump6cc88f72009-03-20 21:53:12 +000018@interface A
19-(void) im0;
20@end
21
22@interface B : A @end
23@implementation B
24-(void) im1 {
25 ^(void) { [super im0]; }();
26}
27@end