Skip to content

Commit fd1875d

Browse files
committed
[test] Move availability tests to later fake OS versions
10.50 was once greater than any real macOS version, but now it compares less than real released versions, which makes these tests depend on the deployment target unnecessarily. Update these tests to use even larger numbers to hopefully keep them independent a little longer.
1 parent 1b2c13b commit fd1875d

File tree

53 files changed

+1146
-1146
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+1146
-1146
lines changed

test/ClangImporter/availability_implicit_macosx.swift

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %swift -typecheck -verify -target %target-cpu-apple-macosx10.51 %clang-importer-sdk -I %S/Inputs/custom-modules %s %S/Inputs/availability_implicit_macosx_other.swift
2-
// RUN: not %swift -typecheck -target %target-cpu-apple-macosx10.51 %clang-importer-sdk -I %S/Inputs/custom-modules %s %S/Inputs/availability_implicit_macosx_other.swift 2>&1 | %FileCheck %s '--implicit-check-not=<unknown>:0'
1+
// RUN: %swift -typecheck -verify -target %target-cpu-apple-macosx51 %clang-importer-sdk -I %S/Inputs/custom-modules %s %S/Inputs/availability_implicit_macosx_other.swift
2+
// RUN: not %swift -typecheck -target %target-cpu-apple-macosx51 %clang-importer-sdk -I %S/Inputs/custom-modules %s %S/Inputs/availability_implicit_macosx_other.swift 2>&1 | %FileCheck %s '--implicit-check-not=<unknown>:0'
33

44
// REQUIRES: OS=macosx
55

@@ -29,15 +29,15 @@ func useClassThatTriggersImportOfPotentiallyUnavailableOptions() {
2929
}
3030

3131
func directUseShouldStillTriggerDeprecationWarning() {
32-
_ = NSDeprecatedOptions.first // expected-warning {{'NSDeprecatedOptions' was deprecated in macOS 10.51: Use a different API}}
33-
_ = NSDeprecatedEnum.first // expected-warning {{'NSDeprecatedEnum' was deprecated in macOS 10.51: Use a different API}}
32+
_ = NSDeprecatedOptions.first // expected-warning {{'NSDeprecatedOptions' was deprecated in macOS 51: Use a different API}}
33+
_ = NSDeprecatedEnum.first // expected-warning {{'NSDeprecatedEnum' was deprecated in macOS 51: Use a different API}}
3434
}
3535

36-
func useInSignature(_ options: NSDeprecatedOptions) { // expected-warning {{'NSDeprecatedOptions' was deprecated in macOS 10.51: Use a different API}}
36+
func useInSignature(_ options: NSDeprecatedOptions) { // expected-warning {{'NSDeprecatedOptions' was deprecated in macOS 51: Use a different API}}
3737
}
3838

3939
class SuperClassWithDeprecatedInitializer {
40-
@available(OSX, introduced: 10.9, deprecated: 10.51)
40+
@available(OSX, introduced: 10.9, deprecated: 51)
4141
init() { }
4242
}
4343

@@ -49,15 +49,15 @@ class SubClassWithSynthesizedDesignedInitializerOverride : SuperClassWithDepreca
4949
}
5050

5151
func callImplicitInitializerOnSubClassWithSynthesizedDesignedInitializerOverride() {
52-
_ = SubClassWithSynthesizedDesignedInitializerOverride() // expected-warning {{'init()' was deprecated in macOS 10.51}}
52+
_ = SubClassWithSynthesizedDesignedInitializerOverride() // expected-warning {{'init()' was deprecated in macOS 51}}
5353
}
5454

55-
@available(OSX, introduced: 10.9, deprecated: 10.51)
55+
@available(OSX, introduced: 10.9, deprecated: 51)
5656
class NSDeprecatedSuperClass {
5757
var i : Int = 7 // Causes initializer to be synthesized
5858
}
5959

60-
class NotDeprecatedSubClassOfDeprecatedSuperClass : NSDeprecatedSuperClass { // expected-warning {{'NSDeprecatedSuperClass' was deprecated in macOS 10.51}}
60+
class NotDeprecatedSubClassOfDeprecatedSuperClass : NSDeprecatedSuperClass { // expected-warning {{'NSDeprecatedSuperClass' was deprecated in macOS 51}}
6161
}
6262

6363
func callImplicitInitializerOnNotDeprecatedSubClassOfDeprecatedSuperClass() {
@@ -67,21 +67,21 @@ func callImplicitInitializerOnNotDeprecatedSubClassOfDeprecatedSuperClass() {
6767
_ = NotDeprecatedSubClassOfDeprecatedSuperClass()
6868
}
6969

70-
@available(OSX, introduced: 10.9, deprecated: 10.51)
70+
@available(OSX, introduced: 10.9, deprecated: 51)
7171
class NSDeprecatedSubClassOfDeprecatedSuperClass : NSDeprecatedSuperClass {
7272
}
7373

7474
// Tests synthesis of materializeForSet
7575
class ClassWithLimitedAvailabilityAccessors {
7676
var limitedGetter: Int {
77-
@available(OSX, introduced: 10.52)
77+
@available(OSX, introduced: 52)
7878
get { return 10 }
7979
set(newVal) {}
8080
}
8181

8282
var limitedSetter: Int {
8383
get { return 10 }
84-
@available(OSX, introduced: 10.52)
84+
@available(OSX, introduced: 52)
8585
set(newVal) {}
8686
}
8787
}
@@ -103,7 +103,7 @@ func unavailableUseInUnavailableFunction() {
103103
}
104104

105105

106-
@available(OSX 10.52, *)
106+
@available(OSX 52, *)
107107
func foo() {
108108
let _ = SubOfOtherWithInit()
109109
}

test/ClangImporter/enum-with-target.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %swift %clang-importer-sdk -target %target-cpu-apple-macosx10.51 -typecheck %s -verify
2-
// RUN: %swift %clang-importer-sdk -target %target-cpu-apple-macosx10.52 -typecheck %s -verify
1+
// RUN: %swift %clang-importer-sdk -target %target-cpu-apple-macosx51 -typecheck %s -verify
2+
// RUN: %swift %clang-importer-sdk -target %target-cpu-apple-macosx52 -typecheck %s -verify
33

44
// REQUIRES: OS=macosx
55
import Foundation

test/ClangImporter/objc_factory_method.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %build-clang-importer-objc-overlays
33

4-
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) -target %target-cpu-apple-macosx10.51 -typecheck %s -verify
4+
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) -target %target-cpu-apple-macosx51 -typecheck %s -verify
55

66
// REQUIRES: OS=macosx
77
// REQUIRES: objc_interop
@@ -41,27 +41,27 @@ func testFactoryWithLaterIntroducedInit() {
4141

4242
// Don't prefer more available convenience factory initializer over less
4343
// available designated initializer
44-
_ = NSHavingConvenienceFactoryAndLaterDesignatedInit(flim:5) // expected-error {{'init(flim:)' is only available in macOS 10.52 or newer}}
44+
_ = NSHavingConvenienceFactoryAndLaterDesignatedInit(flim:5) // expected-error {{'init(flim:)' is only available in macOS 52 or newer}}
4545
// expected-note @-1 {{add 'if #available' version check}}
4646

47-
_ = NSHavingConvenienceFactoryAndLaterDesignatedInit(flam:5) // expected-error {{'init(flam:)' is only available in macOS 10.52 or newer}}
48-
// expected-note @-1 {{add 'if #available' version check}} {{3-63=if #available(macOS 10.52, *) {\n _ = NSHavingConvenienceFactoryAndLaterDesignatedInit(flam:5)\n \} else {\n // Fallback on earlier versions\n \}}}
47+
_ = NSHavingConvenienceFactoryAndLaterDesignatedInit(flam:5) // expected-error {{'init(flam:)' is only available in macOS 52 or newer}}
48+
// expected-note @-1 {{add 'if #available' version check}} {{3-63=if #available(macOS 52, *) {\n _ = NSHavingConvenienceFactoryAndLaterDesignatedInit(flam:5)\n \} else {\n // Fallback on earlier versions\n \}}}
4949

5050

5151
// Don't prefer more available factory initializer over less
5252
// available designated initializer
53-
_ = NSHavingFactoryAndLaterConvenienceInit(flim:5) // expected-error {{'init(flim:)' is only available in macOS 10.52 or newer}}
53+
_ = NSHavingFactoryAndLaterConvenienceInit(flim:5) // expected-error {{'init(flim:)' is only available in macOS 52 or newer}}
5454
// expected-note @-1 {{add 'if #available' version check}}
5555

5656

57-
_ = NSHavingFactoryAndLaterConvenienceInit(flam:5) // expected-error {{'init(flam:)' is only available in macOS 10.52 or newer}}
57+
_ = NSHavingFactoryAndLaterConvenienceInit(flam:5) // expected-error {{'init(flam:)' is only available in macOS 52 or newer}}
5858
// expected-note @-1 {{add 'if #available' version check}}
5959

6060

6161
// When both a convenience factory and a convenience initializer have the
6262
// same availability, choose the convenience initializer.
63-
_ = NSHavingConvenienceFactoryAndSameConvenienceInit(flim:5) // expected-warning {{'init(flim:)' was deprecated in macOS 10.51: ConvenienceInit}}
64-
_ = NSHavingConvenienceFactoryAndSameConvenienceInit(flam:5) // expected-warning {{'init(flam:)' was deprecated in macOS 10.51: ConvenienceInit}}
63+
_ = NSHavingConvenienceFactoryAndSameConvenienceInit(flim:5) // expected-warning {{'init(flim:)' was deprecated in macOS 51: ConvenienceInit}}
64+
_ = NSHavingConvenienceFactoryAndSameConvenienceInit(flam:5) // expected-warning {{'init(flam:)' was deprecated in macOS 51: ConvenienceInit}}
6565

6666
_ = NSHavingConvenienceFactoryAndSameConvenienceInit(flotsam:5) // expected-warning {{'init(flotsam:)' is deprecated: ConvenienceInit}}
6767
_ = NSHavingConvenienceFactoryAndSameConvenienceInit(jetsam:5) // expected-warning {{'init(jetsam:)' is deprecated: ConvenienceInit}}

test/Constraints/result_builder_availability.swift

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-typecheck-verify-swift -target %target-cpu-apple-macosx10.50
1+
// RUN: %target-typecheck-verify-swift -target %target-cpu-apple-macosx50
22

33
// REQUIRES: OS=macosx
44

@@ -66,43 +66,43 @@ func tuplify<T>(_ cond: Bool, @TupleBuilder body: (Bool) -> T) {
6666
@available(OSX, introduced: 10.9)
6767
func globalFuncAvailableOn10_9() -> Int { return 9 }
6868

69-
@available(OSX, introduced: 10.51)
70-
func globalFuncAvailableOn10_51() -> Int { return 10 }
69+
@available(OSX, introduced: 51)
70+
func globalFuncAvailableOn51() -> Int { return 10 }
7171

72-
@available(OSX, introduced: 10.52)
73-
struct Only10_52 { }
72+
@available(OSX, introduced: 52)
73+
struct Only52 { }
7474

75-
@available(OSX, introduced: 10.52)
76-
func globalFuncAvailableOn10_52() -> Only10_52 { .init() }
75+
@available(OSX, introduced: 52)
76+
func globalFuncAvailableOn52() -> Only52 { .init() }
7777

7878
tuplify(true) { cond in
7979
globalFuncAvailableOn10_9()
80-
if #available(OSX 10.51, *) {
81-
globalFuncAvailableOn10_51()
80+
if #available(OSX 51, *) {
81+
globalFuncAvailableOn51()
8282
tuplify(false) { cond2 in
83-
if cond, #available(OSX 10.52, *) {
83+
if cond, #available(OSX 52, *) {
8484
// expected-warning@-1{{result builder 'TupleBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS}}
8585
cond2
86-
globalFuncAvailableOn10_52()
86+
globalFuncAvailableOn52()
8787
} else if true {
88-
globalFuncAvailableOn10_52() // expected-error{{'globalFuncAvailableOn10_52()' is only available in macOS 10.52 or newer}}
88+
globalFuncAvailableOn52() // expected-error{{'globalFuncAvailableOn52()' is only available in macOS 52 or newer}}
8989
// expected-note@-1{{add 'if #available' version check}}
9090
} else if false {
91-
globalFuncAvailableOn10_52() // expected-error{{'globalFuncAvailableOn10_52()' is only available in macOS 10.52 or newer}}
91+
globalFuncAvailableOn52() // expected-error{{'globalFuncAvailableOn52()' is only available in macOS 52 or newer}}
9292
// expected-note@-1{{add 'if #available' version check}}
9393
} else {
94-
globalFuncAvailableOn10_52() // expected-error{{'globalFuncAvailableOn10_52()' is only available in macOS 10.52 or newer}}
94+
globalFuncAvailableOn52() // expected-error{{'globalFuncAvailableOn52()' is only available in macOS 52 or newer}}
9595
// expected-note@-1{{add 'if #available' version check}}
9696
}
97-
if cond, #unavailable(OSX 10.52) {
97+
if cond, #unavailable(OSX 52) {
9898
// expected-warning@-1{{result builder 'TupleBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS}}
9999
cond2
100-
globalFuncAvailableOn10_52() // expected-error{{'globalFuncAvailableOn10_52()' is only available in macOS 10.52 or newer}}
100+
globalFuncAvailableOn52() // expected-error{{'globalFuncAvailableOn52()' is only available in macOS 52 or newer}}
101101
// expected-note@-1{{add 'if #available' version check}}
102102
} else if true {
103-
globalFuncAvailableOn10_52()
103+
globalFuncAvailableOn52()
104104
} else if false {
105-
globalFuncAvailableOn10_52()
105+
globalFuncAvailableOn52()
106106
}
107107
}
108108
}
@@ -155,18 +155,18 @@ func tuplifyWithAvailabilityErasure<T>(_ cond: Bool, @TupleBuilderAvailability b
155155
}
156156

157157
tuplifyWithAvailabilityErasure(true) { cond in
158-
if cond, #available(OSX 10.52, *) {
159-
globalFuncAvailableOn10_52()
158+
if cond, #available(OSX 52, *) {
159+
globalFuncAvailableOn52()
160160
}
161161

162-
if cond, #unavailable(OSX 10.52) {
162+
if cond, #unavailable(OSX 52) {
163163
cond
164164
} else {
165-
globalFuncAvailableOn10_52()
165+
globalFuncAvailableOn52()
166166
}
167167

168168
// https://github.com/apple/swift/issues/63764
169-
if #unavailable(OSX 10.52) {
169+
if #unavailable(OSX 52) {
170170
cond // Ok
171171
}
172172
}

test/IDE/print_clang_framework.swift

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@
3939
//
4040
// REQUIRES: OS=macosx
4141

42-
// FOUNDATION-LABEL: {{^}}/// Aaa. NSAvailableOnOSX10_51AndIOS8_0. Bbb.
43-
// FOUNDATION-NEXT: {{^}}@available(OSX 10.51, *){{$}}
42+
// FOUNDATION-LABEL: {{^}}/// Aaa. NSAvailableOnOSX51AndIOS8_0. Bbb.
43+
// FOUNDATION-NEXT: {{^}}@available(OSX 51, *){{$}}
4444

4545
// FOUNDATION-LABEL: {{^}}/// Aaa. NSPotentiallyUnavailableOptions. Bbb.
46-
// FOUNDATION-NEXT: {{^}}@available(OSX 10.51, *){{$}}
46+
// FOUNDATION-NEXT: {{^}}@available(OSX 51, *){{$}}
4747
// FOUNDATION-NEXT: {{^}}struct PotentiallyUnavailableOptions : OptionSet {{{$}}
4848

4949
// FOUNDATION-LABEL: {{^}}/// Aaa. NSOptionsWithUnavailableElement. Bbb.
@@ -52,11 +52,11 @@
5252
// FOUNDATION-NEXT: {{^}} let rawValue: UInt{{$}}
5353
// FOUNDATION-NEXT: {{^}} static var first: OptionsWithUnavailableElement { get }{{$}}
5454
// FOUNDATION-NEXT: {{^}} static var second: OptionsWithUnavailableElement { get }{{$}}
55-
// FOUNDATION-NEXT: {{^}} @available(OSX 10.51, *){{$}}
55+
// FOUNDATION-NEXT: {{^}} @available(OSX 51, *){{$}}
5656
// FOUNDATION-NEXT: {{^}} static var third: OptionsWithUnavailableElement { get }{{$}}
5757

5858
// FOUNDATION-LABEL: {{^}}/// Aaa. NSUnavailableEnum. Bbb.
59-
// FOUNDATION-NEXT: {{^}}@available(OSX 10.51, *){{$}}
59+
// FOUNDATION-NEXT: {{^}}@available(OSX 51, *){{$}}
6060
// FOUNDATION-NEXT: {{^}}enum UnavailableEnum : UInt {{{$}}
6161

6262
// FOUNDATION-LABEL: {{^}}/// Aaa. NSEnumWithUnavailableElement. Bbb.
@@ -65,25 +65,25 @@
6565
// FOUNDATION-NEXT: {{^}} var rawValue: UInt { get }{{$}}
6666
// FOUNDATION-NEXT: {{^}} case first{{$}}
6767
// FOUNDATION-NEXT: {{^}} case second{{$}}
68-
// FOUNDATION-NEXT: {{^}} @available(OSX 10.51, *){{$}}
68+
// FOUNDATION-NEXT: {{^}} @available(OSX 51, *){{$}}
6969
// FOUNDATION-NEXT: {{^}} case third{{$}}
7070

7171
// FOUNDATION-LABEL: {{^}}/// Aaa. UnannotatedFrameworkProtocol. Bbb.
7272
// FOUNDATION-NEXT: {{^}}protocol UnannotatedFrameworkProtocol {{{$}}
73-
// FOUNDATION-NEXT: {{^}} @available(OSX 10.51, *){{$}}
73+
// FOUNDATION-NEXT: {{^}} @available(OSX 51, *){{$}}
7474
// FOUNDATION-NEXT: {{^}} func doSomething(with k: AnnotatedFrameworkClass?){{$}}
75-
// FOUNDATION-NEXT: {{^}} @available(OSX 10.51, *){{$}}
75+
// FOUNDATION-NEXT: {{^}} @available(OSX 51, *){{$}}
7676
// FOUNDATION-NEXT: {{^}} func doSomething(withNonNullableClass k: AnnotatedFrameworkClass){{$}}
77-
// FOUNDATION-NEXT: {{^}} @available(OSX 10.51, *){{$}}
77+
// FOUNDATION-NEXT: {{^}} @available(OSX 51, *){{$}}
7878
// FOUNDATION-NEXT: {{^}} func doSomething(withIUOClass k: AnnotatedFrameworkClass!){{$}}
79-
// FOUNDATION-NEXT: {{^}} @available(OSX 10.51, *){{$}}
79+
// FOUNDATION-NEXT: {{^}} @available(OSX 51, *){{$}}
8080
// FOUNDATION-NEXT: {{^}} func returnSomething() -> AnnotatedFrameworkClass?{{$}}
8181
// FOUNDATION-NEXT: {{^}} func noUnavailableTypesInSignature(){{$}}
82-
// FOUNDATION-NEXT: {{^}} @available(OSX 10.52, *){{$}}
82+
// FOUNDATION-NEXT: {{^}} @available(OSX 52, *){{$}}
8383
// FOUNDATION-NEXT: {{^}} func doSomething(with k: AnnotatedFrameworkClass, andLaterClass lk: AnnotatedLaterFrameworkClass){{$}}
84-
// FOUNDATION-NEXT: {{^}} @available(OSX 10.53, *)
84+
// FOUNDATION-NEXT: {{^}} @available(OSX 53, *)
8585
// FOUNDATION-NEXT: {{^}} func someMethodWithAvailability()
86-
// FOUNDATION-NEXT: {{^}} @available(OSX 10.51, *){{$}}
86+
// FOUNDATION-NEXT: {{^}} @available(OSX 51, *){{$}}
8787
// FOUNDATION-NEXT: {{^}} var someProperty: AnnotatedFrameworkClass { get set }{{$}}
8888

8989
// FOUNDATION-LABEL: {{^}}/// Aaa. AnnotatedFrameworkProtocol. Bbb.
@@ -94,56 +94,56 @@
9494
// FOUNDATION-LABEL: /// Aaa. FrameworkClassConformingToUnannotatedFrameworkProtocol. Bbb.
9595
// FOUNDATION-NEXT: {{^}}class FrameworkClassConformingToUnannotatedFrameworkProtocol : NSObject, UnannotatedFrameworkProtocol {{{$}}
9696
// FOUNDATION-NEXT: {{^}} init(){{$}}
97-
// FOUNDATION-NEXT: {{^}} @available(OSX 10.51, *){{$}}
97+
// FOUNDATION-NEXT: {{^}} @available(OSX 51, *){{$}}
9898
// FOUNDATION-NEXT: {{^}} func doSomething(with k: AnnotatedFrameworkClass?){{$}}
99-
// FOUNDATION-NEXT: {{^}} @available(OSX 10.51, *){{$}}
99+
// FOUNDATION-NEXT: {{^}} @available(OSX 51, *){{$}}
100100
// FOUNDATION-NEXT: {{^}} func doSomething(withNonNullableClass k: AnnotatedFrameworkClass){{$}}
101-
// FOUNDATION-NEXT: {{^}} @available(OSX 10.51, *){{$}}
101+
// FOUNDATION-NEXT: {{^}} @available(OSX 51, *){{$}}
102102
// FOUNDATION-NEXT: {{^}} func doSomething(withIUOClass k: AnnotatedFrameworkClass!){{$}}
103-
// FOUNDATION-NEXT: {{^}} @available(OSX 10.51, *){{$}}
103+
// FOUNDATION-NEXT: {{^}} @available(OSX 51, *){{$}}
104104
// FOUNDATION-NEXT: {{^}} func returnSomething() -> AnnotatedFrameworkClass?{{$}}
105105
// FOUNDATION-NEXT: {{^}} func noUnavailableTypesInSignature(){{$}}
106-
// FOUNDATION-NEXT: {{^}} @available(OSX 10.52, *){{$}}
106+
// FOUNDATION-NEXT: {{^}} @available(OSX 52, *){{$}}
107107
// FOUNDATION-NEXT: {{^}} func doSomething(with k: AnnotatedFrameworkClass, andLaterClass lk: AnnotatedLaterFrameworkClass){{$}}
108-
// FOUNDATION-NEXT: {{^}} @available(OSX 10.53, *)
108+
// FOUNDATION-NEXT: {{^}} @available(OSX 53, *)
109109
// FOUNDATION-NEXT: {{^}} func someMethodWithAvailability()
110-
// FOUNDATION-NEXT: {{^}} @available(OSX 10.51, *){{$}}
110+
// FOUNDATION-NEXT: {{^}} @available(OSX 51, *){{$}}
111111
// FOUNDATION-NEXT: {{^}} var someProperty: AnnotatedFrameworkClass{{$}}
112112

113113
// FOUNDATION-LABEL: /// Aaa. LaterFrameworkClassConformingToUnannotatedFrameworkProtocol. Bbb.
114-
// FOUNDATION-NEXT: {{^}}@available(OSX 10.52, *){{$}}
114+
// FOUNDATION-NEXT: {{^}}@available(OSX 52, *){{$}}
115115
// FOUNDATION-NEXT: {{^}}class LaterFrameworkClassConformingToUnannotatedFrameworkProtocol : NSObject, UnannotatedFrameworkProtocol {{{$}}
116116
// FOUNDATION-NEXT: {{^}} init(){{$}}
117-
// FOUNDATION-NEXT: {{^}} @available(OSX 10.52, *){{$}}
117+
// FOUNDATION-NEXT: {{^}} @available(OSX 52, *){{$}}
118118
// FOUNDATION-NEXT: {{^}} func doSomething(with k: AnnotatedFrameworkClass?){{$}}
119-
// FOUNDATION-NEXT: {{^}} @available(OSX 10.52, *){{$}}
119+
// FOUNDATION-NEXT: {{^}} @available(OSX 52, *){{$}}
120120
// FOUNDATION-NEXT: {{^}} func doSomething(withNonNullableClass k: AnnotatedFrameworkClass){{$}}
121-
// FOUNDATION-NEXT: {{^}} @available(OSX 10.52, *){{$}}
121+
// FOUNDATION-NEXT: {{^}} @available(OSX 52, *){{$}}
122122
// FOUNDATION-NEXT: {{^}} func doSomething(withIUOClass k: AnnotatedFrameworkClass!){{$}}
123-
// FOUNDATION-NEXT: {{^}} @available(OSX 10.52, *){{$}}
123+
// FOUNDATION-NEXT: {{^}} @available(OSX 52, *){{$}}
124124
// FOUNDATION-NEXT: {{^}} func returnSomething() -> AnnotatedFrameworkClass?{{$}}
125-
// FOUNDATION-NEXT: {{^}} @available(OSX 10.52, *){{$}}
125+
// FOUNDATION-NEXT: {{^}} @available(OSX 52, *){{$}}
126126
// FOUNDATION-NEXT: {{^}} func noUnavailableTypesInSignature(){{$}}
127-
// FOUNDATION-NEXT: {{^}} @available(OSX 10.52, *){{$}}
127+
// FOUNDATION-NEXT: {{^}} @available(OSX 52, *){{$}}
128128
// FOUNDATION-NEXT: {{^}} func doSomething(with k: AnnotatedFrameworkClass, andLaterClass lk: AnnotatedLaterFrameworkClass){{$}}
129-
// FOUNDATION-NEXT: {{^}} @available(OSX 10.53, *)
129+
// FOUNDATION-NEXT: {{^}} @available(OSX 53, *)
130130
// FOUNDATION-NEXT: {{^}} func someMethodWithAvailability()
131-
// FOUNDATION-NEXT: {{^}} @available(OSX 10.52, *){{$}}
131+
// FOUNDATION-NEXT: {{^}} @available(OSX 52, *){{$}}
132132
// FOUNDATION-NEXT: {{^}} var someProperty: AnnotatedFrameworkClass{{$}}
133133
}
134134

135135
// FOUNDATION-LABEL: /// Aaa. FrameworkClassConformingToLaterAnnotatedFrameworkProtocol. Bbb.
136136
// FOUNDATION-NEXT: {{^}}class FrameworkClassConformingToLaterAnnotatedFrameworkProtocol : NSObject, LaterAnnotatedFrameworkProtocol {
137137
// FOUNDATION-NEXT: {{^}} init()
138-
// FOUNDATION-NEXT: {{^}} @available(OSX 10.52, *)
138+
// FOUNDATION-NEXT: {{^}} @available(OSX 52, *)
139139
// FOUNDATION-NEXT: {{^}} func returnSomething() -> AnnotatedFrameworkClass?
140-
// FOUNDATION-NEXT: {{^}} @available(OSX 10.52, *)
140+
// FOUNDATION-NEXT: {{^}} @available(OSX 52, *)
141141
// FOUNDATION-NEXT: {{^}} func doSomething(with k: AnnotatedFrameworkClass, andLaterClass lk: AnnotatedLaterFrameworkClass)
142-
// FOUNDATION-NEXT: {{^}} @available(OSX 10.52, *)
142+
// FOUNDATION-NEXT: {{^}} @available(OSX 52, *)
143143
// FOUNDATION-NEXT: {{^}} func noUnavailableTypesInSignature()
144-
// FOUNDATION-NEXT: {{^}} @available(OSX 10.53, *)
144+
// FOUNDATION-NEXT: {{^}} @available(OSX 53, *)
145145
// FOUNDATION-NEXT: {{^}} func someMethodWithAvailability()
146-
// FOUNDATION-NEXT: {{^}} @available(OSX 10.52, *)
146+
// FOUNDATION-NEXT: {{^}} @available(OSX 52, *)
147147
// FOUNDATION-NEXT: {{^}} var someProperty: AnnotatedFrameworkClass
148148
}
149149

0 commit comments

Comments
 (0)