- Notifications
You must be signed in to change notification settings - Fork 10.5k
/
Copy pathexported-module-name.swift
19 lines (16 loc) · 893 Bytes
/
exported-module-name.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// RUN: %empty-directory(%t)
// RUN: %target-swift-emit-module-interface(%t/CoreKitClient.swiftinterface) %s -module-name CoreKitClient -I %S/Inputs/exported-module-name-before
// RUN: %FileCheck -implicit-check-not BAD %s < %t/CoreKitClient.swiftinterface
// Test that we can rebuild it even when the "export as" module goes away.
// RUN: %target-swift-typecheck-module-from-interface(%t/CoreKitClient.swiftinterface) -module-name CoreKitClient -I %S/Inputs/exported-module-name-after
// CHECK: import CoreKit
import CoreKit
// CHECK-LABEL: public struct CKThingWrapper : Swift.RawRepresentable {
publicstructCKThingWrapper:RawRepresentable{
publicvarrawValue:CKThing
publicinit(rawValue:CKThing){
self.rawValue = rawValue
}
// Note that this is CoreKit.CKThing, not ExportAsCoreKit.CKThing
// CHECK: public typealias RawValue = CoreKit.CKThing
} // CHECK: {{^}$}}