mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
One of the subtests of Misc/fatal_error.swift assumes that Swift.swiftmodule is located purely based on the resource directory. It can now also be located in the SDK, so the test needs to be updated. Fixes <rdar://problem/49665477>.
16 lines
560 B
Swift
16 lines
560 B
Swift
// RUN: %empty-directory(%t)
|
|
|
|
// RUN: not %target-swift-frontend -typecheck %s -sdk %t 2>&1 | %FileCheck -check-prefix=CHECK -check-prefix=NO-MODULE %s
|
|
// RUN: not %target-swift-frontend -typecheck %s -resource-dir %t -sdk %t 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
|