]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGenObjC/runtime-abi-match.m
Vendor import of clang trunk r338150:
[FreeBSD/FreeBSD.git] / test / CodeGenObjC / runtime-abi-match.m
1 // RUN: %clang_cc1 -triple thumbv7--windows-itanium -fobjc-runtime=ios -O1 -fexceptions -fobjc-exceptions -emit-llvm %s -o - | FileCheck %s
2 // REQUIRES: arm-registered-target
3
4 void (*f)(id);
5 void (*g)(void);
6 void h(void);
7
8 @interface NSNumber
9 + (NSNumber *)numberWithInt:(int)i;
10 @end
11
12 void 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 i8* @objc_begin_catch
22 // CHECK: call arm_aapcs_vfpcc void @objc_end_catch
23 // CHECK-NOT: call i8* @objc_begin_catch
24 // CHECK-NOT: call void @objc_end_catch
25