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
[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git]
/
clang
/
test
/
Analysis
/
objc-live-crash.mm
blob
b3b4f19bfc0dd4a2d9f89dec00d7153174d67737
1
// RUN: %clang --analyze %s -fblocks
2
3
// https://reviews.llvm.org/D82598#2171312
4
5
@interface Item
6
// ...
7
@end
8
9
@interface Collection
10
// ...
11
@end
12
13
typedef void (^Blk)();
14
15
struct RAII {
16
Blk blk;
17
18
public:
19
RAII(Blk blk): blk(blk) {}
20
~RAII() { blk(); }
21
};
22
23
void foo(Collection *coll) {
24
RAII raii(^{});
25
for (Item *item in coll) {}
26
int i;
27
{
28
int j;
29
}
30
}