mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
30 lines
1.0 KiB
Plaintext
30 lines
1.0 KiB
Plaintext
// RUN: %swift -module-name test -import-objc-header %S/Inputs/ptrauth-foreign.h %s -parse-stdlib -parse-as-library -emit-ir -target arm64e-apple-ios12.0 -Xllvm -sil-disable-pass=OnoneSimplification | %FileCheck %s --check-prefix=CHECK
|
|
|
|
// REQUIRES: CPU=arm64e
|
|
// REQUIRES: OS=ios
|
|
|
|
sil @test0 : $() -> () {
|
|
bb0:
|
|
%0 = metatype $@thick IntPair.Type
|
|
|
|
// CHECK: @"$sSo9WidgetRefaMn.ptrauth" =
|
|
// CHECK-SAME: @"$sSo9WidgetRefaMn"
|
|
// CHECK-SAME: @"$sSo9WidgetRefaMf", i32 0, i32 3
|
|
// CHECK-SAME: i64 44678
|
|
// CHECK-SAME: section "llvm.ptrauth"
|
|
// CHECK: @"$sSo9WidgetRefaMf" = linkonce_odr hidden constant
|
|
// CHECK-SAME: @"$sSo9WidgetRefaMn.ptrauth"
|
|
%1 = metatype $@thick Widget.Type
|
|
|
|
// CHECK: @"$sSo7IntPairVMn.ptrauth" =
|
|
// CHECK-SAME: @"$sSo7IntPairVMn"
|
|
// CHECK-SAME: @"$sSo7IntPairVMf", i32 0, i32 3
|
|
// CHECK-SAME: i64 44678
|
|
// CHECK-SAME: section "llvm.ptrauth"
|
|
// CHECK: @"$sSo7IntPairVMf" = linkonce_odr hidden constant
|
|
// CHECK-SAME: @"$sSo7IntPairVMn.ptrauth"
|
|
|
|
%ret = tuple ()
|
|
return %ret : $()
|
|
}
|