mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
A parse-only option is needed for parse performance tracking and the current option also includes semantic analysis.
16 lines
606 B
Swift
16 lines
606 B
Swift
// RUN: %swift -typecheck -target x86_64-apple-macosx10.9 -verify -sdk %sdk %s
|
|
// REQUIRES: OS=macosx
|
|
// REQUIRES: objc_interop
|
|
|
|
import Foundation
|
|
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
|