brintos

brintos / llvm-project-archived public Read only

0
0
Text · 351 B · 60615f7 Raw
17 lines · plain
1// RUN: %clang_cc1 -Wno-error=return-type -fblocks -emit-llvm %s -o /dev/null2 3@interface bork4- (id)B:(void (^)(void))blk;5- (void)C;6@end7@implementation bork8- (id)B:(void (^)(void))blk {9  __attribute__((__blocks__(byref))) bork* new = ((void *)0);10  blk();11}12- (void)C {13  __attribute__((__blocks__(byref))) id var;14  [self B:^(void) {}];15}16@end17