Files
swift-mirror/test/stdlib/DispatchDeprecationWatchOS.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

15 lines
852 B
Swift

// RUN: %swift -typecheck -target i386-apple-watchos2.0 -verify -sdk %sdk %s
// REQUIRES: OS=watchos
// REQUIRES: objc_interop
import Foundation
import Dispatch
// These are deprecated on all versions of watchOS.
_ = DispatchQueue.GlobalQueuePriority.high // expected-warning {{'high' is deprecated on watchOS: Use qos attributes instead}}
_ = DispatchQueue.GlobalQueuePriority.default // expected-warning {{'default' is deprecated on watchOS: Use qos attributes instead}}
_ = DispatchQueue.GlobalQueuePriority.low // expected-warning {{'low' is deprecated on watchOS: Use qos attributes instead}}
let b = DispatchQueue.GlobalQueuePriority.background // expected-warning {{'background' is deprecated on watchOS: Use qos attributes instead}}
_ = DispatchQueue.global(priority:b) // expected-warning {{'global(priority:)' is deprecated on watchOS}}