Files
swift-mirror/test/Misc/fatal_error.swift
Jordan Rose 7ec4c4fef3 Don't suggest using 'xcrun' when not on OS X.
Also, suggest "xcrun swiftc" instead of "xcrun swift" on OS X, since
"swift" already infers SDKs and we shouldn't get into this situation.
(We shouldn't get into it on non-OS-X either thanks to the previous
commit, but just in case.)

rdar://problem/22440615

Swift SVN r31535
2015-08-27 18:47:26 +00:00

14 lines
511 B
Swift

// RUN: not %target-swift-frontend -parse %s -sdk "" 2>&1 | FileCheck -check-prefix=CHECK -check-prefix=NO-MODULE %s
// RUN: not %target-swift-frontend -parse %s -resource-dir / 2>&1 | FileCheck -check-prefix=CHECK -check-prefix=NO-STDLIB %s
// NO-MODULE: error: no such module 'NonExistent'
// NO-STDLIB: error: unable to load standard library for target '{{.+-.+}}'
// CHECK-NOT: error
// CHECK-NOT: warning
import NonExistent
// No subsequent diagnostics after fatal errors.
var x: NonExistent.Something