mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
These tests require a newer runtime and fail on older OSes: test/Concurrency/Runtime/actor_detach.swift test/Concurrency/Runtime/actor_init.swift test/Interpreter/rdar80847020.swift test/stdlib/Reflection_objc.swift
25 lines
766 B
Swift
25 lines
766 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-clang %S/Inputs/rdar80847020.m -I %S/Inputs -c -o %t/rdar80847020.o
|
|
// RUN: %target-build-swift -Xfrontend -disable-availability-checking -import-objc-header %S/Inputs/rdar80847020.h -Xlinker %t/rdar80847020.o -parse-as-library %s -o %t/a.out
|
|
// RUN: %target-codesign %t/a.out
|
|
// RUN: %target-run %t/a.out | %FileCheck %s
|
|
|
|
// REQUIRES: executable_test
|
|
// REQUIRES: objc_interop
|
|
// REQUIRES: concurrency
|
|
|
|
// UNSUPPORTED: use_os_stdlib
|
|
// UNSUPPORTED: back_deployment_runtime
|
|
|
|
func run(_ s: Clazz) async throws {
|
|
let res: (String, String) = try await s.doSomethingMultiResultFlaggy()
|
|
// CHECK: ("hi", "bye")
|
|
print(res)
|
|
}
|
|
|
|
@main struct Main {
|
|
static func main() async throws {
|
|
try await run(Clazz())
|
|
}
|
|
}
|