Files
swift-mirror/test/Serialization/import.swift
Dmitri Gribenko 486cab447d tests: replace 'rm -rf %t && mkdir -p %t' with '%empty-directory(%t)'
These changes were made using a script.
2017-06-04 11:08:39 -07:00

15 lines
481 B
Swift

// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -emit-module -o %t %s -module-name Import
// RUN: %target-swift-frontend -typecheck -I %t %s -module-name main -DMAIN -verify
// Note: This file is compiled both as a library and as a client of that library. The -verify checks only apply to the client.
import Import
public func test() {
Import.test()
Import.hidden() // expected-error {{module 'Import' has no member named 'hidden'}}
}
internal func hidden() {}