mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Test] Use the SwiftStdlib 5.5 macro in Concurrency tests
This commit is contained in:
@@ -12,46 +12,46 @@
|
||||
// CHECK-EXTENSION-NOT: extension {{.+}} : _Concurrency.Actor
|
||||
|
||||
// CHECK: public actor PlainActorClass {
|
||||
@available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
|
||||
@available(SwiftStdlib 5.5, *)
|
||||
public actor PlainActorClass {
|
||||
@actorIndependent public func enqueue(_ job: UnownedJob) { }
|
||||
}
|
||||
|
||||
// CHECK: public actor ExplicitActorClass : _Concurrency.Actor {
|
||||
@available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
|
||||
@available(SwiftStdlib 5.5, *)
|
||||
public actor ExplicitActorClass : Actor {
|
||||
@actorIndependent public func enqueue(_ job: UnownedJob) { }
|
||||
}
|
||||
|
||||
// CHECK: public actor EmptyActor {
|
||||
@available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
|
||||
@available(SwiftStdlib 5.5, *)
|
||||
public actor EmptyActor {}
|
||||
|
||||
// CHECK: actor public class EmptyActorClass {
|
||||
@available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
|
||||
@available(SwiftStdlib 5.5, *)
|
||||
public actor class EmptyActorClass {}
|
||||
|
||||
// CHECK: public protocol Cat : _Concurrency.Actor {
|
||||
@available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
|
||||
@available(SwiftStdlib 5.5, *)
|
||||
public protocol Cat : Actor {
|
||||
func mew()
|
||||
}
|
||||
|
||||
// CHECK: public actor HouseCat : Library.Cat {
|
||||
@available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
|
||||
@available(SwiftStdlib 5.5, *)
|
||||
public actor HouseCat : Cat {
|
||||
@asyncHandler public func mew() {}
|
||||
@actorIndependent public func enqueue(_ job: UnownedJob) { }
|
||||
}
|
||||
|
||||
// CHECK: public protocol ToothyMouth {
|
||||
@available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
|
||||
@available(SwiftStdlib 5.5, *)
|
||||
public protocol ToothyMouth {
|
||||
func chew()
|
||||
}
|
||||
|
||||
// CHECK: public actor Lion : Library.ToothyMouth, _Concurrency.Actor {
|
||||
@available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
|
||||
@available(SwiftStdlib 5.5, *)
|
||||
public actor Lion : ToothyMouth, Actor {
|
||||
@asyncHandler public func chew() {}
|
||||
@actorIndependent public func enqueue(_ job: UnownedJob) { }
|
||||
|
||||
Reference in New Issue
Block a user