File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ // RUN: %empty-directory(%t)
2+ // RUN: %empty-directory(%t/module-generated)
3+ // RUN: split-file %s %t
4+ // RUN: %target-swift-frontend %t/A.swift -module-name A -emit-module -emit-module-path %t/A.swiftmodule
5+ // RUN: %target-swift-frontend %t/B.swift -module-name B -emit-module -emit-module-path %t/B.swiftmodule -I %t
6+ // RUN: %target-swift-frontend %t/C.swift -module-name C -emit-module -emit-module-path %t/C.swiftmodule -I %t \
7+ // RUN: -emit-symbol-graph -emit-symbol-graph-dir %t
8+ // RUN: %target-swift-symbolgraph-extract -module-name C -I %t -output-dir \
9+ // RUN: %t/module-generated/ -experimental-allowed-reexported-modules=A,B
10+ // RUN: %FileCheck %s --input-file %t/C.symbols.json
11+ // RUN: %FileCheck %s --input-file %t/module-generated/C.symbols.json
12+
13+ //--- A.swift
14+ public struct A { }
15+ public func AFunc( ) -> Void { }
16+
17+ //--- B.swift
18+ @_exported import A
19+ public struct B { }
20+ public func BFunc( ) -> Void { }
21+
22+ //--- C.swift
23+ @_exported import B
24+ public struct C { }
25+ public func CFunc( ) -> Void { }
26+
27+ // CHECK-DAG: "precise":"s:1CAAV"
28+ // CHECK-DAG: "precise":"s:1BAAV"
29+ // CHECK-DAG: "precise":"s:1AAAV"
You can’t perform that action at this time.
0 commit comments