Files
swift-mirror/test/ClangImporter/objc_async_macos.swift
Henrik G. Olsson cbc0ec3b88 Add -verify-ignore-unrelated where necessary (NFC)
These are tests that fail in the next commit without this flag. This
does not add -verify-ignore-unrelated to all tests with -verify, only
the ones that would fail without it. This is NFC since this flag is
currently a no-op.
2025-10-04 14:19:52 -07:00

14 lines
511 B
Swift

// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -I %S/Inputs/custom-modules %s -verify -verify-ignore-unrelated
// REQUIRES: objc_interop
// REQUIRES: concurrency
// REQUIRES: OS=macosx
import Foundation
import ObjCConcurrency
@available(macOS 12.0, *)
func testSlowServer(slowServer: SlowServer) async throws {
_ = try await slowServer.oldAPI(); // expected-error{{'oldAPI()' is unavailable in macOS: APIs deprecated as of macOS 10.14 and earlier are not imported as 'async'}}
}