blob: d5993ddc9b3c36b4f9f3c3e21bf6cb59d14490e8 [file] [log] [blame]
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -verify -I %S/Inputs/custom-modules %s
// REQUIRES: OS=macosx
import Foundation
import AvailabilityExtras
func test_unavailable_because_deprecated() {
_ = NSRealMemoryAvailable() // expected-error {{APIs deprecated as of OS X 10.9 and earlier are unavailable in Swift}}
}
func test_swift_unavailable_wins() {
unavailableWithOS() // expected-error {{'unavailableWithOS()' is unavailable in Swift}}
}