repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git]
/
clang
/
test
/
CodeGenObjC
/
2008-11-25-Blocks.m
blob
80f45b532371c4996aa24fdbccc6f3b58bb279d8
1
// RUN: %clang_cc1 -fblocks -emit-llvm %s -o /dev/null
2
// rdar://6394879
3
4
@interface bork
5
- (id)B:(void (^)(void))blk;
6
- (void)C;
7
@end
8
@implementation bork
9
- (id)B:(void (^)(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:^(void) {}];
16
}
17
@end