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

To enable Flang testing on Windows, shell scripts have to be ported to Python. The following changes have been made: "test_modfile.sh" has been ported to Python, and the relevant tests relying on it. Reviewed By: Meinersbur Differential Revision: https://reviews.llvm.org/D107956
33 lines
492 B
Fortran
33 lines
492 B
Fortran
! RUN: %python %S/test_modfile.py %s %flang_fc1
|
|
|
|
! Ensure that a dummy procedure's interface's imports
|
|
! appear in the module file.
|
|
|
|
module m
|
|
type :: t
|
|
end type
|
|
contains
|
|
subroutine s1(s2)
|
|
interface
|
|
subroutine s2(x)
|
|
import
|
|
class(t) :: x
|
|
end subroutine
|
|
end interface
|
|
end subroutine
|
|
end module
|
|
!Expect: m.mod
|
|
!module m
|
|
!type::t
|
|
!end type
|
|
!contains
|
|
!subroutine s1(s2)
|
|
!interface
|
|
!subroutine s2(x)
|
|
!import::t
|
|
!class(t)::x
|
|
!end
|
|
!end interface
|
|
!end
|
|
!end
|