mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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
19 lines
587 B
Swift
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()
|
|
|
|
|