blob: d8cae0d5c36bfb150d2151d0937ce3c3d8f293cc [file] [edit]
! RUN: %python %S/test_errors.py %s %flang_fc1 -Werror
! Without portability warnings, a local subprogram hides an ancestor interface and leaves calls to the
! ancestor's separate module procedure undefined at link time.
module alpha
interface
module subroutine second
end subroutine second
end interface
end module alpha
submodule(alpha) beta
end submodule beta
submodule(alpha:beta) gamma
contains
subroutine second
end subroutine second
end submodule gamma