mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 03:36: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.
26 lines
485 B
Fortran
26 lines
485 B
Fortran
! RUN: %python %S/test_errors.py %s %flang_fc1
|
|
module m1
|
|
interface
|
|
module subroutine s()
|
|
end subroutine
|
|
end interface
|
|
end
|
|
|
|
module m2
|
|
interface
|
|
module subroutine s()
|
|
end subroutine
|
|
end interface
|
|
end
|
|
|
|
submodule(m1) s1
|
|
end
|
|
|
|
!ERROR: Cannot parse module file for submodule 's1' of module 'm2': Source file 'm2-s1.mod' was not found
|
|
submodule(m2:s1) s2
|
|
end
|
|
|
|
!ERROR: Cannot parse module file for module 'm3': Source file 'm3.mod' was not found
|
|
submodule(m3:s1) s3
|
|
end
|