mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The concurrency runtime now deploys back to macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, which corresponds to the 5.1 release of the stdlib. Adjust macro usages accordingly.
18 lines
659 B
Swift
18 lines
659 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: mkdir -p %t/OldActor.framework/Modules/OldActor.swiftmodule
|
|
// RUN: %target-swift-frontend -emit-module -module-name OldActor %S/Inputs/OldActor.swiftinterface -o %t/OldActor.framework/Modules/OldActor.swiftmodule/%module-target-triple.swiftmodule
|
|
// RUN: %target-swift-frontend -F %t -disable-availability-checking -typecheck -verify %s
|
|
|
|
// RUNX: cp -r %S/Inputs/OldActor.framework %t/
|
|
// RUNX: %{python} %S/../CrossImport/Inputs/rewrite-module-triples.py %t %module-target-triple
|
|
|
|
// REQUIRES: concurrency
|
|
|
|
import OldActor
|
|
|
|
@available(SwiftStdlib 5.1, *)
|
|
extension Monk {
|
|
public func test() async {
|
|
method()
|
|
}
|
|
} |