Files
swift-mirror/test/CrossImport/module-trace.swift
Saleem Abdulrasool 849d5f0aaf Serialization: normalize the path before use
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.
2021-12-22 08:41:17 -08:00

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