mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
20 lines
861 B
Swift
20 lines
861 B
Swift
// RUN: %empty-directory(%t)
|
|
// REQUIRES: concurrency
|
|
|
|
import MeowActor
|
|
|
|
@available(SwiftStdlib 5.5, *)
|
|
@MeowActor func doMeow() {}
|
|
|
|
// RUN: %target-swift-frontend -enable-experimental-concurrency -enable-library-evolution -emit-module -o %t/MeowActor.swiftmodule %S/Inputs/MeowActor.swift
|
|
// RUN: %target-swift-frontend -enable-experimental-concurrency -emit-silgen %s -I %t | %FileCheck --check-prefix CHECK-RESILIENT %s
|
|
// CHECK-RESILIENT: metatype $@thick MeowActor.Type
|
|
|
|
// RUN: %target-swift-frontend -enable-experimental-concurrency -emit-module -o %t/MeowActor.swiftmodule %S/Inputs/MeowActor.swift
|
|
// RUN: %target-swift-frontend -enable-experimental-concurrency -emit-silgen %s -I %t | %FileCheck --check-prefix CHECK-FRAGILE %s
|
|
// CHECK-FRAGILE: metatype $@thin MeowActor.Type
|
|
|
|
@available(SwiftStdlib 5.5, *)
|
|
func someFunc() async {
|
|
await doMeow()
|
|
} |