When removing a function from the function set and adding it to deferred, we
[llvm.git] / test / FrontendObjC / 2008-11-25-Blocks.m
blobc5cd3d2a0b2f474f7b265c6cf347961815f554ff
1 // RUN: %llvmgcc -S %s -o /dev/null
2 // rdar://6394879
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();
13 - (void)C {
14   __attribute__((__blocks__(byref))) id var;
15   [self B:^() {}];
17 @end