Files
swift-mirror/validation-test/ParseableInterface/failing-overlay.swift
Jordan Rose 3243f21280 Make sure all failures to load module interfaces are diagnosed (#25636)
...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
2019-06-20 14:14:38 -07:00

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'