mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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
14 lines
511 B
Swift
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
|