mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-15 04:29:42 +00:00
fde9786b44
2007-04-03-ObjcEH.m 2007-05-02-Strong.m 2007-10-18-ProDescriptor.m 2007-10-23-GC-WriteBarrier.m 2008-10-3-EhValue.m 2008-11-12-Metadata.m 2008-11-24-ConstCFStrings.m from llvm/test/FrontendObjC. llvm-svn: 138172
28 lines
410 B
Objective-C
28 lines
410 B
Objective-C
// RUN: %clang -fexceptions -S -emit-llvm %s -o -
|
|
|
|
@interface B
|
|
-(int)bar;
|
|
@end
|
|
|
|
@interface A
|
|
-(void) Foo:(int) state;
|
|
@end
|
|
|
|
@implementation A
|
|
- (void) Foo:(int) state {
|
|
|
|
int wasResponded = 0;
|
|
@try {
|
|
if (state) {
|
|
B * b = 0;
|
|
@try { }
|
|
@finally {
|
|
wasResponded = ![b bar];
|
|
}
|
|
}
|
|
}
|
|
@finally {
|
|
}
|
|
}
|
|
@end
|