mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
* Enable running tests from test/Concurrency/ directory in freestanding/minimal presets * Mark failing Concurrency tests as XFAIL/SKIP on freestanding/minimal
25 lines
555 B
Swift
25 lines
555 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-build-swift -target %target-cpu-apple-macosx11 %s -o %t/test_backdeploy -Xfrontend -parse-as-library
|
|
// RUN: %target-run %t/test_backdeploy
|
|
|
|
// REQUIRES: OS=macosx
|
|
// REQUIRES: executable_test
|
|
// REQUIRES: concurrency_runtime
|
|
// REQUIRES: objc_interop
|
|
// UNSUPPORTED: back_deployment_runtime
|
|
|
|
import Foundation
|
|
|
|
@objc actor MyActor {
|
|
func f() -> String { "hello" }
|
|
}
|
|
|
|
@main
|
|
enum Main {
|
|
static func main() async {
|
|
let ma = MyActor()
|
|
let greeting = await ma.f()
|
|
assert(greeting == "hello")
|
|
}
|
|
}
|