Files
swift-mirror/test/Frontend/emit-interface-macos-canonical-version.swift
Nathan Hawes 9bcb54910e [AST] Prefer the 'macOS' spelling over 'OSX' when printing the platform kind.
This affects module interfaces, interface generation in sourcekitd, and
diagnostics. Also fixes a fixit that was assuming the 'OSX' spelling when
computing the source range to replace.

Resolves rdar://problem/64667960
2020-07-08 13:51:25 -07:00

19 lines
587 B
Swift

// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -typecheck %s -enable-library-evolution -emit-module-interface-path %t/Module.swiftinterface -experimental-skip-non-inlinable-function-bodies
// RUN: %FileCheck %s --check-prefixes CHECK < %t/Module.swiftinterface
// REQUIRES: OS=macosx
@available(macOS 10.16, *)
public func introduced10_16() { }
// CHECK: @available(macOS 11.0, *)
// CHECK-NEXT: public func introduced10_16()
@available(OSX 11.0, *)
public func introduced11_0() { }
// CHECK-NEXT: @available(macOS 11.0, *)
// CHECK-NEXT: public func introduced11_0()