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
/
Rewriter
/
rewrite-trivial-constructor.mm
blob
e343a383102ab6db48671ca099c56d33d9587489
1
// RUN: %clang_cc1 -fms-extensions -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 -x objective-c++ -fblocks -o - %s
2
// radar 7537770
3
4
typedef struct {
5
int a;
6
int b;
7
} s;
8
9
extern void CFBasicHashApply(int (^block)(s)) {
10
int used, cnt;
11
for (int idx = 0; 0 < used && idx < cnt; idx++) {
12
s bkt;
13
if (0 < bkt.a) {
14
if (!block(bkt)) {
15
return;
16
}
17
used--;
18
}
19
}
20
}
21