26 lines · plain
1// RUN: %clang_cc1 -triple thumbv7--windows-itanium -fobjc-runtime=ios -O1 -fexceptions -fobjc-exceptions -emit-llvm %s -o - | FileCheck %s2// REQUIRES: arm-registered-target3 4void (*f)(id);5void (*g)(void);6void h(void);7 8@interface NSNumber9+ (NSNumber *)numberWithInt:(int)i;10@end11 12void i(void) {13 @try {14 @throw(@1);15 } @catch (id i) {16 (*f)(i);17 (*g)();18 }19}20 21// CHECK: call arm_aapcs_vfpcc ptr @objc_begin_catch22// CHECK: call arm_aapcs_vfpcc void @objc_end_catch23// CHECK-NOT: call ptr @objc_begin_catch24// CHECK-NOT: call void @objc_end_catch25 26