Files
swift-mirror/test/stdlib/DispatchDeprecationMacOS.swift
David Farler b7d17b25ba Rename -parse flag to -typecheck
A parse-only option is needed for parse performance tracking and the
current option also includes semantic analysis.
2016-11-28 10:50:55 -08:00

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