blob: 258d70a54f0f4b4346a7443e0513659060831a94 [file] [log] [blame]
Bill Wendling74064192008-11-26 02:21:12 +00001// RUN: %llvmgcc -c %s -o /dev/null
2// rdar://6394879
3
4@interface bork
5- (id)B:(void (^)())blk;
6- (void)C;
7@end
8@implementation bork
9- (id)B:(void (^)())blk {
10 __attribute__((__blocks__(byref))) bork* new = ((void *)0);
11 blk();
12}
13- (void)C {
14 __attribute__((__blocks__(byref))) id var;
15 [self B:^() {}];
16}
17@end