21
21
// - a get accessor
22
22
// - an unsafeAddress accessor
23
23
24
+ // TODO: CoroutineAccessors: Replace SwiftStdlib 9999 with SwiftStdlib X.Y.
25
+
24
26
@frozen
25
27
public struct U : ~ Copyable { }
26
28
@@ -30,9 +32,11 @@ public protocol P1 : ~Copyable {
30
32
@_borrowed
31
33
var ubgs : U { get set }
32
34
}
35
+ @available ( SwiftStdlib 9999 , * )
33
36
public protocol P2 : ~ Copyable {
34
37
var urs : U { read set }
35
38
}
39
+ @available ( SwiftStdlib 6 . 0 , * )
36
40
public protocol P3 : ~ Copyable {
37
41
var ur : U { read }
38
42
}
@@ -83,6 +87,7 @@ public struct ImplAStored : ~Copyable & P1 {
83
87
}
84
88
85
89
@frozen
90
+ @available( SwiftStdlib 9999 , * )
86
91
public struct ImplBStored : ~ Copyable & P2 {
87
92
var dummy: ( )
88
93
public var urs : U
@@ -130,6 +135,7 @@ public struct ImplBStored : ~Copyable & P2 {
130
135
}
131
136
132
137
@frozen
138
+ @available ( SwiftStdlib 6 . 0 , * )
133
139
public struct ImplCStored : ~ Copyable & P3 {
134
140
var dummy : ( )
135
141
public var ur : U
@@ -229,6 +235,7 @@ public struct ImplAUnderscoredCoroutineAccessors : ~Copyable & P1 {
229
235
}
230
236
231
237
@frozen
238
+ @available ( SwiftStdlib 9999 , * )
232
239
public struct ImplBUnderscoredCoroutineAccessors : ~ Copyable & P2 {
233
240
var _i : U
234
241
public var urs : U {
@@ -282,6 +289,7 @@ public struct ImplBUnderscoredCoroutineAccessors : ~Copyable & P2 {
282
289
}
283
290
284
291
@frozen
292
+ @available ( SwiftStdlib 6 . 0 , * )
285
293
public struct ImplCUnderscoredCoroutineAccessors : ~ Copyable & P3 {
286
294
var _i : U
287
295
public var ur : U {
@@ -395,6 +403,7 @@ struct ImplACoroutineAccessors : ~Copyable & P1 {
395
403
}
396
404
397
405
@frozen
406
+ @available ( SwiftStdlib 9999 , * )
398
407
public struct ImplBCoroutineAccessors : ~ Copyable & P2 {
399
408
var _i : U
400
409
public var urs : U {
@@ -480,6 +489,7 @@ public struct ImplBCoroutineAccessors : ~Copyable & P2 {
480
489
}
481
490
482
491
@frozen
492
+ @available ( SwiftStdlib 6 . 0 , * )
483
493
public struct ImplCCoroutineAccessors : ~ Copyable & P3 {
484
494
var _i : U
485
495
public var ur : U {
@@ -622,6 +632,7 @@ public struct ImplAGetSet : P1 {
622
632
}
623
633
624
634
@frozen
635
+ @available ( SwiftStdlib 9999 , * )
625
636
public struct ImplBGetSet : P2 {
626
637
var _i : U {
627
638
get { return U ( ) }
@@ -682,6 +693,7 @@ public struct ImplBGetSet : P2 {
682
693
}
683
694
684
695
@frozen
696
+ @available ( SwiftStdlib 6 . 0 , * )
685
697
public struct ImplCGetSet : P3 {
686
698
var _i : U {
687
699
get { return U ( ) }
@@ -803,6 +815,7 @@ public struct ImplAUnsafeAddressors : P1 {
803
815
}
804
816
805
817
@frozen
818
+ @available ( SwiftStdlib 9999 , * )
806
819
public struct ImplBUnsafeAddressors : P2 {
807
820
var iAddr : UnsafePointer < U >
808
821
var iMutableAddr : UnsafeMutablePointer < U > {
@@ -868,6 +881,7 @@ public struct ImplBUnsafeAddressors : P2 {
868
881
}
869
882
870
883
@frozen
884
+ @available ( SwiftStdlib 6 . 0 , * )
871
885
public struct ImplCUnsafeAddressors : P3 {
872
886
var iAddr : UnsafePointer < U >
873
887
var iMutableAddr : UnsafeMutablePointer < U > {
0 commit comments