Files
swift-mirror/test/Serialization/load.swift
David Farler b7d17b25ba Rename -parse flag to -typecheck
A parse-only option is needed for parse performance tracking and the
current option also includes semantic analysis.
2016-11-28 10:50:55 -08:00

11 lines
496 B
Swift

// RUN: rm -rf %t
// RUN: mkdir -p %t
// RUN: %target-swift-frontend %s -typecheck -verify -show-diagnostics-after-fatal
// RUN: %target-swift-frontend -emit-module -o %t %S/Inputs/def_func.swift -module-name new_module
// RUN: %target-swift-frontend %s -typecheck -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.getZero() // expected-error {{use of unresolved identifier 'new_module'}}