mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
17 lines
650 B
Swift
17 lines
650 B
Swift
// RUN: %target-swift-ide-test(mock-sdk: %clang-importer-sdk) -I %t -I %S/Inputs/custom-modules -print-module -module-to-print=ImportedProtocols.SubModule -source-filename %s > %t.printed.txt
|
|
// RUN: %FileCheck %s < %t.printed.txt
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
// CHECK: protocol ImportedProtocolBase : NSObjectProtocol {
|
|
// CHECK: }
|
|
// CHECK: typealias ImportedProtocolBase_t = any ImportedProtocolBase
|
|
// CHECK: protocol IPSub : ImportedProtocolBase {
|
|
// CHECK: }
|
|
// CHECK: typealias IPSub_t = any IPSub
|
|
// CHECK: typealias Dummy = any IPSub
|
|
// CHECK: func takesIPSub(_ in: IPSub_t!)
|
|
|
|
import ImportedProtocols
|
|
func noop(_ p: ImportedProtocolSub) {}
|