File tree Expand file tree Collapse file tree 4 files changed +12
-4
lines changed
stdlib/public/Synchronization/Atomics
stdlib/Synchronization/Atomics Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -185,8 +185,6 @@ extension WordPair: Hashable {
185185
186186@available ( SwiftStdlib 6 . 2 , * )
187187extension WordPair : Comparable {
188- // Note: This function can have a lower availability than the conformance
189- // itself because it's always emit into client.
190188 @available ( SwiftStdlib 6 . 2 , * )
191189 @_alwaysEmitIntoClient
192190 @_transparent
Original file line number Diff line number Diff line change @@ -698,3 +698,6 @@ Added: _$s15Synchronization20AtomicUpdateOrderingV22sequentiallyConsistentACvpZM
698698Added: _$s15Synchronization20AtomicUpdateOrderingV7relaxedACvpZMV
699699Added: _$s15Synchronization20AtomicUpdateOrderingV9acquiringACvpZMV
700700Added: _$s15Synchronization20AtomicUpdateOrderingV9releasingACvpZMV
701+
702+ // WordPair to Comparable conformance
703+ Added: _$s15Synchronization8WordPairVSLAAMc
Original file line number Diff line number Diff line change @@ -692,3 +692,6 @@ Added: _$s15Synchronization20AtomicUpdateOrderingV22sequentiallyConsistentACvpZM
692692Added: _$s15Synchronization20AtomicUpdateOrderingV7relaxedACvpZMV
693693Added: _$s15Synchronization20AtomicUpdateOrderingV9acquiringACvpZMV
694694Added: _$s15Synchronization20AtomicUpdateOrderingV9releasingACvpZMV
695+
696+ // WordPair to Comparable conformance
697+ Added: _$s15Synchronization8WordPairVSLAAMc
Original file line number Diff line number Diff line change @@ -45,7 +45,12 @@ suite.test("basics") {
4545 let value1 = WordPair ( first: . max, second: 0 )
4646 expectEqual ( value1. first, . max)
4747 expectEqual ( value1. second, 0 )
48+ }
49+
50+ } // if #available(SwiftStdlib 6.0, *)
4851
52+ if #available( SwiftStdlib 6 . 2 , * ) {
53+ suite. test ( " comparable " ) {
4954 let c0 = WordPair ( first: 0 , second: 0 )
5055 let c1 = WordPair ( first: 1 , second: 0 )
5156 let c2 = WordPair ( first: 2 , second: 0 )
@@ -60,7 +65,6 @@ suite.test("basics") {
6065 expectTrue ( c4 < c5)
6166 expectFalse ( c5 < c4)
6267}
63-
64- } // if #available(SwiftStdlib 6.0, *)
68+ } // if #available(SwiftStdlib 6.2, *)
6569
6670runAllTests ( )
You can’t perform that action at this time.
0 commit comments