mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Module printing and serialization support for @unchecked Sendable
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-swift-frontend -emit-module -o %t/Test.swiftmodule -emit-module-interface-path %t/Test.swiftinterface -module-name Test -enable-experimental-concurrency %s
|
||||
// RUN: %FileCheck %s < %t/Test.swiftinterface
|
||||
// RUN: %FileCheck %s -check-prefix SYNTHESIZED < %t/Test.swiftinterface
|
||||
// RUN: %target-swift-frontend -typecheck-module-from-interface -module-name Test %t/Test.swiftinterface
|
||||
|
||||
// RUN: %target-swift-frontend -emit-module -o /dev/null -merge-modules %t/Test.swiftmodule -disable-objc-attr-requires-foundation-module -emit-module-interface-path %t/TestFromModule.swiftinterface -module-name Test -enable-experimental-concurrency
|
||||
@@ -38,3 +39,25 @@ public class C2 { }
|
||||
|
||||
// CHECK: @{{(Test.)?}}SomeGlobalActor public class C2
|
||||
public class C3: C2 { }
|
||||
|
||||
// CHECK: public class C4 : Swift.UnsafeSendable
|
||||
public class C4: UnsafeSendable { }
|
||||
|
||||
// CHECK: public class C5 : @unchecked Swift.Sendable
|
||||
public class C5: @unchecked Sendable { }
|
||||
|
||||
public class C6 { }
|
||||
|
||||
// CHECK: extension {{(Test.)?}}C6 : @unchecked Swift.Sendable
|
||||
extension C6: @unchecked Sendable { }
|
||||
|
||||
public class C7 { }
|
||||
|
||||
// CHECK: extension {{(Test.)?}}C7 : Swift.UnsafeSendable
|
||||
extension C7: UnsafeSendable { }
|
||||
|
||||
// FIXME: Work around a bug where module printing depends on the "synthesized"
|
||||
// bit in conformances which is not serialized and not present in the textual
|
||||
// form.
|
||||
|
||||
// SYNTHESIZED: extension Test.C2 : Swift.Sendable {}
|
||||
|
||||
Reference in New Issue
Block a user