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] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git]
/
clang
/
test
/
CodeGenObjC
/
2007-04-03-ObjcEH.m
blob
f86ff49bbbd5a29d10c89432b0d2f810ef3cd231
1
// RUN: %clang -fexceptions -S -emit-llvm %s -o -
2
3
@interface B
4
-(int)bar;
5
@end
6
7
@interface A
8
-(void) Foo:(int) state;
9
@end
10
11
@implementation A
12
- (void) Foo:(int) state {
13
14
int wasResponded = 0;
15
@try {
16
if (state) {
17
B * b = 0;
18
@try { }
19
@finally {
20
wasResponded = ![b bar];
21
}
22
}
23
}
24
@finally {
25
}
26
}
27
@end