Files
swift-mirror/test/Interpreter/rdar80847020.swift
Mike Ash 4efb9ac0ac [Tests] Mark some tests as unsupported in back deployment testing.
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
2021-07-28 17:49:40 -04:00

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())
}
}