mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
30 lines
864 B
Swift
30 lines
864 B
Swift
// RUN: %target-swift-frontend -emit-ir -o- -parse-as-library -module-name test -import-objc-header %S/Inputs/objc_class_header.h -validate-tbd-against-ir %s
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
import Foundation
|
|
|
|
public class PublicEmpty: NSObject {}
|
|
|
|
public class PublicSubPublicEmpty: PublicEmpty {}
|
|
internal class InternalSubPublicEmpty: PublicEmpty {}
|
|
private class PrivateSubPublicEmpty: PublicEmpty {}
|
|
|
|
|
|
internal class InternalEmpty: NSObject {}
|
|
|
|
internal class InternalSubInternalEmpty: InternalEmpty {}
|
|
private class PrivateSubInternalEmpty: InternalEmpty {}
|
|
|
|
|
|
private class PrivateEmpty: NSObject {}
|
|
|
|
private class PrivateSubPrivateEmpty: PrivateEmpty {}
|
|
|
|
|
|
public class PublicInheritObjCProtocol: NSObject, ObjCProtocol {}
|
|
|
|
internal class InternalInheritObjCProtocol: NSObject, ObjCProtocol {}
|
|
|
|
private class PrivateInheritObjCProtocol: NSObject, ObjCProtocol {}
|