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
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
clang
/
test
/
Rewriter
/
rewrite-trivial-constructor.mm
blob
7cbcb2ad54246c48f3543f0deb58bd83f98c9776
1
// RUN: %clang_cc1 -fms-extensions -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 -x objective-c++ -fblocks -o - %s
2
3
typedef struct {
4
int a;
5
int b;
6
} s;
7
8
extern void CFBasicHashApply(int (^block)(s)) {
9
int used, cnt;
10
for (int idx = 0; 0 < used && idx < cnt; idx++) {
11
s bkt;
12
if (0 < bkt.a) {
13
if (!block(bkt)) {
14
return;
15
}
16
used--;
17
}
18
}
19
}
20