mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Currently, the Swift module loader just looks for a .sm file, verifies the signature "SMod", and produces an empty DeclContext. Swift SVN r5126
11 lines
376 B
Swift
11 lines
376 B
Swift
// RUN: %swift %s -parse -verify
|
|
// RUN: rm -rf %t
|
|
// RUN: mkdir %t
|
|
// RUN: %swift -emit-module -o %t/new_module.sm %S/empty.swift
|
|
// RUN: %swift %s -parse -I=%t
|
|
|
|
// These errors should happen before we've built the module to import.
|
|
import new_module // expected-error{{no such module 'new_module'}}
|
|
|
|
new_module // expected-error{{use of unresolved identifier 'new_module'}}
|