-
Notifications
You must be signed in to change notification settings - Fork 10.5k
/
Copy pathactor_objc.swift
20 lines (16 loc) · 986 Bytes
/
actor_objc.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -emit-module -o %t/Test.swiftmodule -emit-module-interface-path %t/Test.swiftinterface -module-name Test %s
// RUN: %FileCheck %s < %t/Test.swiftinterface
// RUN: %target-swift-typecheck-module-from-interface(%t/Test.swiftinterface) -module-name Test
// 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
// RUN: %FileCheck %s < %t/TestFromModule.swiftinterface
// RUN: %target-swift-typecheck-module-from-interface(%t/TestFromModule.swiftinterface) -module-name Test
// REQUIRES: concurrency
// REQUIRES: objc_interop
import Foundation
// CHECK-LABEL: @objc @_inheritsConvenienceInitializers
// CHECK: public actor SomeActor : ObjectiveC.NSObject {
// CHECK: @objc override public init()
@available(SwiftStdlib 5.1, *)
public actor SomeActor: NSObject {
}