mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
15 lines
338 B
Swift
15 lines
338 B
Swift
// RUN: %target-typecheck-verify-swift -target %target-cpu-apple-macosx10.15 -disable-objc-attr-requires-foundation-module
|
|
|
|
// REQUIRES: OS=macosx
|
|
|
|
func markUsed<T>(_ t: T) {}
|
|
|
|
@available(OSX 10.16, *)
|
|
func introducedOn10_16() { }
|
|
|
|
func useUnderPoundAvailable() {
|
|
if #available(OSX 10.16, *) {
|
|
introducedOn10_16() // no-error
|
|
}
|
|
}
|