2016-10-14 03:45:08 +08:00
|
|
|
// RUN: %clang -target armv7-windows -fobjc-runtime=ios -O1 -fexceptions -S -emit-llvm %s -o - | FileCheck %s
|
2016-10-14 04:10:22 +08:00
|
|
|
// REQUIRES: arm-registered-target
|
2016-10-14 03:45:08 +08:00
|
|
|
|
|
|
|
void (*f)(id);
|
|
|
|
void (*g)(void);
|
|
|
|
void h(void);
|
|
|
|
|
|
|
|
@interface NSNumber
|
|
|
|
+ (NSNumber *)numberWithInt:(int)i;
|
|
|
|
@end
|
|
|
|
|
|
|
|
void i(void) {
|
|
|
|
@try {
|
|
|
|
@throw(@1);
|
|
|
|
} @catch (id i) {
|
|
|
|
(*f)(i);
|
|
|
|
(*g)();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// CHECK: call arm_aapcs_vfpcc i8* @objc_begin_catch
|
|
|
|
// CHECK: call arm_aapcs_vfpcc void @objc_end_catch
|
|
|
|
// CHECK-NOT: call i8* @objc_begin_catch
|
|
|
|
// CHECK-NOT: call void @objc_end_catch
|
|
|
|
|