Skip to content

Commit aab66ee

Browse files
committed
Split out macOS-specific part of test.
1 parent 10a4e1e commit aab66ee

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -I %S/Inputs/custom-modules -enable-experimental-concurrency %s -verify
2+
3+
// REQUIRES: objc_interop
4+
// REQUIRES: concurrency
5+
// REQUIRES: OS=macosx
6+
7+
import Foundation
8+
import ObjCConcurrency
9+
10+
func testSlowServer(slowServer: SlowServer) async throws {
11+
_ = 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'}}
12+
}

0 commit comments

Comments
 (0)