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