mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
15 lines
399 B
Swift
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)
|