mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
15 lines
694 B
Swift
15 lines
694 B
Swift
// RUN: %target-swift-frontend -target %target-cpu-apple-macos12 -emit-ir -o - -primary-file %s | %FileCheck %s
|
|
// REQUIRES: OS=macosx
|
|
|
|
func useGenericMetatype(_ type: any ~Escapable.Type) { }
|
|
|
|
// CHECK-LABEL: define hidden swiftcc void @"$s20backward_deploy_span11testSpanIntyyF"()
|
|
func testSpanInt() {
|
|
// CHECK: call swiftcc %swift.metadata_response @"$ss4SpanVySiGMa"
|
|
// CHECK: call swiftcc void @"$s20backward_deploy_span18useGenericMetatypeyyypRi0_s_XPXpF"
|
|
useGenericMetatype(Span<Int>.self)
|
|
}
|
|
|
|
// CHECK-LABEL: define linkonce_odr hidden swiftcc %swift.metadata_response @"$ss4SpanVySiGMa"
|
|
// CHECK: call swiftcc %swift.metadata_response @"$ss4SpanVMa"({{i32|i64}} %0, ptr @"$sSiN")
|