mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 15:06:37 +00:00

Instead of "Cannot read ...", distinguish true errors in finding and parsing module files from problems with unexpected hash codes by using "Cannot parse" or "Cannot use" wording as appropriate.
14 lines
223 B
Fortran
14 lines
223 B
Fortran
! RUN: %python %S/test_errors.py %s %flang_fc1
|
|
module m1
|
|
end
|
|
|
|
subroutine sub
|
|
end
|
|
|
|
use m1
|
|
!ERROR: Cannot parse module file for module 'm2': Source file 'm2.mod' was not found
|
|
use m2
|
|
!ERROR: 'sub' is not a module
|
|
use sub
|
|
end
|