Files
swift-mirror/test/Misc/fatal_error.swift
Dmitri Hrybenko 3b04d1b013 tests: reorganize tests so that they actually use the target platform
Most tests were using %swift or similar substitutions, which did not
include the target triple and SDK.  The driver was defaulting to the
host OS.  Thus, we could not run the tests when the standard library was
not built for OS X.

Swift SVN r24504
2015-01-19 06:52:49 +00:00

17 lines
686 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-MODULE: note: did you forget to set an SDK using -sdk or SDKROOT?
// NO-MODULE-NEXT: use "{{.+}}" to select the default OS X SDK installed with Xcode
// NO-STDLIB: error: unable to load standard library for target '{{.+-.+}}'
// CHECK-NOT: error
// CHECK-NOT: warning
// CHECK-NOT: note
import NonExistent
// No subsequent diagnostics after fatal errors.
var x: NonExistent.Something