Files
swift-mirror/test/Misc/fatal_error.swift
Brent Royal-Gordon ee65d9159c Update “unable to load standard library” test (#23990)
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>.
2019-04-13 02:03:33 -07:00

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