Debian Codegraph @

clang/test/CodeGenObjC/2008-11-25-Blocks.m

raw
1 // RUN: %clang_cc1 -Wno-error=return-type -fblocks -emit-llvm %s -o /dev/null
2
3 @interface bork
4 - (id)B:(void (^)(void))blk;
5 - (void)C;
6 @end
7 @implementation bork
8 - (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 @end