Files
swift-mirror/test/stdlib/DispatchDeprecationMacOS.swift
Mishal Shah 92ca9fc924 [Apple Silicon] Generalize tests for other macOS architectures
Most of the changes fall into a few categories:
* Replace explicit "x86_64" with %target-cpu in lit tests
* Cope with architecture differences in IR/asm/etc. macOS-specific tests
2020-07-02 16:27:46 -07:00

15 lines
592 B
Swift

// RUN: %swift -typecheck -target %target-cpu-apple-macosx10.9 -verify -sdk %sdk %s
// REQUIRES: OS=macosx
// REQUIRES: libdispatch
import Dispatch
// Don't warn because these APIs were deprecated in macOS 10.10 and the
// minimum deployment target is 10.9.
_ = DispatchQueue.GlobalQueuePriority.high // no-warning
_ = DispatchQueue.GlobalQueuePriority.default // no-warning
_ = DispatchQueue.GlobalQueuePriority.low // no-warning
_ = DispatchQueue.GlobalQueuePriority.background // no-warning
_ = DispatchQueue.global(priority:DispatchQueue.GlobalQueuePriority.background) // no-warning