mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
In case import resolution order somehow sometimes matters, it's prudent to process/resolve/locate implicitly-imported modules first. Resolves rdar://113917657
27 lines
823 B
Swift
27 lines
823 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: mkdir -p %t/clang-module-cache
|
|
// RUN: %target-swift-frontend -scan-dependencies -import-prescan -module-cache-path %t/clang-module-cache %s -o %t/deps.json -I %S/Inputs/CHeaders -I %S/Inputs/Swift -emit-dependencies -emit-dependencies-path %t/deps.d -import-objc-header %S/Inputs/CHeaders/Bridging.h -swift-version 4
|
|
|
|
// Check the contents of the JSON output
|
|
// RUN: %validate-json %t/deps.json | %FileCheck %s
|
|
|
|
// REQUIRES: executable_test
|
|
// REQUIRES: objc_interop
|
|
|
|
import C
|
|
import E
|
|
import G
|
|
import SubE
|
|
|
|
// CHECK: "imports": [
|
|
// CHECK-DAG: "C"
|
|
// CHECK-DAG: "E"
|
|
// CHECK-DAG: "G"
|
|
// CHECK-DAG: "SubE"
|
|
// CHECK-DAG: "Swift"
|
|
// CHECK-DAG: "SwiftOnoneSupport"
|
|
// CHECK-DAG: "_Concurrency"
|
|
// CHECK-DAG: "_SwiftConcurrencyShims"
|
|
// CHECK-DAG: "_StringProcessing"
|
|
// CHECK: ]
|