mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This normalizes the path so that we always have the mapping in normal form. This fixes a bug in the cross-module import tracing, allowing us to finally enable the test on Windows.
14 lines
629 B
Swift
14 lines
629 B
Swift
// This file tests that we emit cross-imports into module interfaces.
|
|
|
|
// RUN: %empty-directory(%t)
|
|
// RUN: cp -r %S/Inputs/lib-templates/* %t/
|
|
|
|
// RUN: %target-swift-frontend -enable-cross-import-overlays -I %t/lib/swift -typecheck %s -module-name main -swift-version 5 -emit-loaded-module-trace-path - | %FileCheck %s
|
|
|
|
import DeclaringLibrary
|
|
import BystandingLibrary
|
|
|
|
// CHECK-DAG: {"name":"DeclaringLibrary","path":"{{[^"]+}}","isImportedDirectly":true
|
|
// CHECK-DAG: {"name":"BystandingLibrary","path":"{{[^"]+}}","isImportedDirectly":true
|
|
// CHECK-DAG: {"name":"_OverlayLibrary","path":"{{[^"]+}}","isImportedDirectly":true
|