mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The directory currently seems to have a mix of tests for import resolution and name lookup. Therefore split it into two directories; ImportResolution and NameLookup.
15 lines
531 B
Swift
15 lines
531 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend -emit-module -o %t/abcde.swiftmodule %S/Inputs/abcde.swift
|
|
// RUN: %target-swift-frontend -emit-module -o %t/Library.swiftmodule %s -I %t
|
|
|
|
// RUN: echo 'import Library; foo()' > %t/main.swift
|
|
// RUN: %target-swift-frontend -typecheck %t/main.swift -I %t
|
|
|
|
// Delete the indirect dependency; everything should still work.
|
|
// RUN: rm %t/abcde.swiftmodule
|
|
// RUN: %target-swift-frontend -typecheck %t/main.swift -I %t
|
|
|
|
@_implementationOnly import abcde
|
|
|
|
public func foo() {}
|