File tree Expand file tree Collapse file tree 4 files changed +36
-0
lines changed Expand file tree Collapse file tree 4 files changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ // RUN: %empty-directory(%t)
2
+ // RUN: %target-build-swift %S/Inputs/CrossImport/A.swift -I %t -module-name A -emit-module -emit-module-path %t/
3
+ // RUN: %target-build-swift %S/Inputs/CrossImport/B.swift -I %t -module-name B -emit-module -emit-module-path %t/
4
+ // RUN: %target-build-swift %s -module-name _A_B -I %t -emit-module -emit-module-path %t/
5
+ // RUN: cp -r %S/Inputs/CrossImport/A.swiftcrossimport %t/
6
+ // RUN: %target-swift-symbolgraph-extract -module-name A -I %t -pretty-print -output-dir %t
7
+ // RUN: %FileCheck %s --input-file %t/
[email protected]
8
+
9
+ @_exported import A
10
+ import B
11
+
12
+ extension A {
13
+ public func transmogrify( ) -> B {
14
+ return B ( y: self . x) ;
15
+ }
16
+ }
17
+
18
+ // CHECK: module
19
+ // CHECK-NEXT: "name": "A"
20
+ // CHECK-NEXT: bystanders
21
+ // CHECK-NEXT: B
Original file line number Diff line number Diff line change
1
+ public struct A {
2
+ public var x : Int
3
+ }
Original file line number Diff line number Diff line change
1
+ %YAML 1.2
2
+ ---
3
+ version: 1
4
+ modules:
5
+ - name: _A_B
Original file line number Diff line number Diff line change
1
+ public struct B {
2
+ public var y : Int
3
+
4
+ public init ( y: Int ) {
5
+ self . y = y
6
+ }
7
+ }
You can’t perform that action at this time.
0 commit comments