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
[TableGen] Fix validateOperandClass for non Phyical Reg (#118146)
[llvm-project.git]
/
clang
/
test
/
CodeGenObjC
/
2008-11-25-Blocks.m
blob
f0be6de338980b7dbc442f329742ea6504a60e4c
1
// RUN: %clang_cc1 -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