mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This change is two fold. Firstly it enables collection of exported imports from non source file units. Additionally this recurses through the exported imports to ensure the transitive set is collected. Fixes https://github.com/apple/swift/issues/59920 rdar://89687175
17 lines
884 B
Swift
17 lines
884 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %empty-directory(%t/module-generated)
|
|
// RUN: %target-swift-frontend %S/Inputs/DuplicateExportedImport/A.swift -module-name A -emit-module -emit-module-path %t/A.swiftmodule
|
|
// RUN: %target-swift-frontend %s -module-name DuplicateExportedImport -emit-module -emit-module-path \
|
|
// RUN: %t/DuplicateExportedImport.swiftmodule -I %t -emit-symbol-graph -emit-symbol-graph-dir %t/
|
|
// RUN: %FileCheck %s --input-file %t/DuplicateExportedImport.symbols.json
|
|
// RUN: %target-swift-symbolgraph-extract -module-name DuplicateExportedImport -I %t -output-dir %t/module-generated/ \
|
|
// RUN: -experimental-allowed-reexported-modules=A
|
|
// RUN: %FileCheck %s --input-file %t/module-generated/DuplicateExportedImport.symbols.json
|
|
|
|
// REQUIRES: asserts
|
|
|
|
// CHECK-COUNT-1: "precise":"s:1A8ClassTwoC"
|
|
|
|
@_exported import A
|
|
@_exported import class A.ClassTwo
|