1 // RUN: %clang_cc1 %s -triple arm64e-apple-ios13 -fptrauth-calls -fptrauth-intrinsics -emit-llvm -o- | FileCheck %s
2 // RUN: %clang_cc1 %s -triple aarch64-linux-gnu -fptrauth-calls -fptrauth-intrinsics -emit-llvm -o- | FileCheck %s
4 typedef void (*fptr_t
)(void);
9 // CHECK: define {{(dso_local )?}}void @test1
11 // CHECK: [[LOAD:%.*]] = load ptr, ptr @cptr
12 // CHECK: call void [[LOAD]]() [ "ptrauth"(i32 0, i64 0) ]
18 // CHECK: define {{(dso_local )?}}i8 @test2
21 // CHECK: [[LOAD:%.*]] = load ptr, ptr @fptr
22 // CHECK: [[LOAD1:%.*]] = load i8, ptr [[LOAD]]
23 // CHECK: ret i8 [[LOAD1]]