forked from swiftlang/swift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
don't assert when a module re-exports a module and one of its symbols (…
…swiftlang#64479) rdar://106807038
- Loading branch information
1 parent
5e3e0b0
commit f3ad288
Showing
3 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// RUN: %empty-directory(%t) | ||
// 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 /dev/null -I %t -emit-symbol-graph -emit-symbol-graph-dir %t/ | ||
// RUN: %FileCheck %s --input-file %t/DuplicateExportedImport.symbols.json | ||
|
||
// REQUIRES: asserts | ||
|
||
// CHECK-COUNT-1: "precise":"s:1A8ClassTwoC" | ||
|
||
@_exported import A | ||
@_exported import class A.ClassTwo |
3 changes: 3 additions & 0 deletions
3
test/SymbolGraph/Module/Inputs/DuplicateExportedImport/A.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
public class ClassOne {} | ||
|
||
public class ClassTwo {} |