- Notifications
You must be signed in to change notification settings - Fork 10.5k
/
Copy pathDuplicateExportedImport.swift
16 lines (13 loc) · 884 Bytes
/
DuplicateExportedImport.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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"
@_exportedimport A
@_exportedimportclass A.ClassTwo