mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add tracing of the underlying Clang module for an overlay dependency if said overlay dependency forms a cycle
11 lines
556 B
Swift
11 lines
556 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: mkdir -p %t/clang-module-cache
|
|
|
|
// RUN: not %target-swift-frontend -scan-dependencies -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 &> %t/out.txt
|
|
|
|
// RUN: %FileCheck %s < %t/out.txt
|
|
|
|
// CHECK: module dependency cycle: 'CycleOne.swiftinterface -> CycleTwo.swiftinterface -> CycleThree.swiftinterface -> CycleOne.swiftinterface'
|
|
|
|
import CycleOne
|