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.
20 lines
857 B
Swift
20 lines
857 B
Swift
// RUN: %empty-directory(%t)
|
|
// REQUIRES: concurrency
|
|
|
|
import MeowActor
|
|
|
|
@available(SwiftStdlib 5.1, *)
|
|
@MeowActor func doMeow() {}
|
|
|
|
// RUN: %target-swift-frontend -disable-availability-checking -enable-library-evolution -emit-module -o %t/MeowActor.swiftmodule %S/Inputs/MeowActor.swift
|
|
// RUN: %target-swift-frontend -disable-availability-checking -emit-silgen %s -I %t | %FileCheck --check-prefix CHECK-RESILIENT %s
|
|
// CHECK-RESILIENT: metatype $@thick MeowActor.Type
|
|
|
|
// RUN: %target-swift-frontend -disable-availability-checking -emit-module -o %t/MeowActor.swiftmodule %S/Inputs/MeowActor.swift
|
|
// RUN: %target-swift-frontend -disable-availability-checking -emit-silgen %s -I %t | %FileCheck --check-prefix CHECK-FRAGILE %s
|
|
// CHECK-FRAGILE: metatype $@thin MeowActor.Type
|
|
|
|
@available(SwiftStdlib 5.1, *)
|
|
func someFunc() async {
|
|
await doMeow()
|
|
} |