mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
It is an optional, user-accessible mechanism to have the compiler tell you what it’s cross-importing. Resolves rdar://problem/60381893
10 lines
655 B
Swift
10 lines
655 B
Swift
// This file tests that the -Rcross-import option causes an appropriate remark to be emitted
|
|
// RUN: %empty-directory(%t)
|
|
// RUN: cp -r %S/Inputs/lib-templates/* %t/
|
|
// RUN: %target-typecheck-verify-swift -enable-cross-import-overlays -Rcross-import -I %t/include -I %t/lib/swift -F %t/Frameworks
|
|
|
|
import DeclaringLibrary
|
|
// FIXME: Similarly to horrible.swift, ideally we would emit this remark on DelcaringLibrary
|
|
// decl, since the cross-import overlay actually belongs to the DeclaringLibrary. (SR-12223)
|
|
import BystandingLibrary // expected-remark {{import of 'DeclaringLibrary' and 'BystandingLibrary' triggered a cross-import of '_OverlayLibrary'}}
|