peter klausler 0bfa4ac6c6 [flang] Improve "Error reading module file" error message
Instead of using a message attachment with further details,
emit the details as part of a single message.

Differential Revision: https://reviews.llvm.org/D96465
2021-02-11 11:08:12 -08:00

14 lines
211 B
Fortran

! RUN: %S/test_errors.sh %s %t %f18
module m1
end
subroutine sub
end
use m1
!ERROR: Cannot read module file for module 'm2': Source file 'm2.mod' was not found
use m2
!ERROR: 'sub' is not a module
use sub
end