Files
swift-mirror/test/IRGen/extended_existential_metadata_weak.swift
Allan Shortlidge 082f0ac4b5 Tests: Use a more natural spelling for ABI triple lit substitutions.
`%target-swift-5.8-abi-triple` instead of `%target-swift-abi-5.8-triple`, for
example.
2024-10-18 10:11:36 -07:00

15 lines
399 B
Swift

// RUN: %target-swift-frontend -emit-ir %s -target %target-swift-5.5-abi-triple | %FileCheck %s
// REQUIRES: VENDOR=apple
// UNSUPPORTED: OS=xros
public protocol P<A> {
associatedtype A
}
public func f<T>(_: T.Type) {}
@available(SwiftStdlib 5.7, *)
public func g<T>(_: T.Type) { f((any P<T>).self) }
// CHECK-LABEL: declare extern_weak ptr @swift_getExtendedExistentialTypeMetadata(ptr, ptr)