Files
swift-mirror/test/IRGen/async/protocol_req_descriptor.swift
Allan Shortlidge cb578172ea Tests: Remove -disable-availability-checking in more tests that use concurrency.
Use the `%target-swift-5.1-abi-triple` substitution to compile the tests for
deployment to the minimum OS versions required for use of _Concurrency APIs,
instead of disabling availability checking.
2024-10-19 12:35:20 -07:00

17 lines
611 B
Swift

// RUN: %target-swift-frontend -emit-ir -target %target-swift-5.1-abi-triple %s | %FileCheck -check-prefix CHECK -check-prefix CHECK-%target-cpu -check-prefix CHECK-%target-import-type %s
// REQUIRES: concurrency
// UNSUPPORTED: CPU=arm64e
// Make sure that the protocol requirement descriptor includes the async flag.
// CHECK: @"$s23protocol_req_descriptor12RepoProtocolMp" = {{.*}}%swift.protocol_requirement { i32 34, i32 0 }, %swift.protocol_requirement { i32 49, i32 0 } }>
protocol RepoProtocol {
init() async
func run() async
}
actor Impl: RepoProtocol {
init() async {}
func run() async {}
}