mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
...specifically, diagnosed in the parent DiagnosticEngine. This not only provides a better user experience, but makes sure that the compiler exits with a nonzero exit code even if the module goes unused. rdar://problem/50789839
9 lines
348 B
Swift
9 lines
348 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: not %target-swift-frontend -I %S/Inputs/failing-overlay/ -typecheck %s 2>&1 | %FileCheck %s
|
|
|
|
import ImportsOverlay
|
|
|
|
// FIXME: It would be better if this had a useful location, like inside the
|
|
// C header that caused the importing of the overlay.
|
|
// CHECK: <unknown>:0: error: failed to load module 'HasOverlay'
|