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
21 lines
331 B
Fortran
21 lines
331 B
Fortran
! RUN: %python %S/test_modfile.py %s %flang_fc1
|
|
module m
|
|
implicit complex(8)(z)
|
|
real :: x
|
|
namelist /nl1/ x, y
|
|
namelist /nl2/ y, x
|
|
namelist /nl1/ i, z
|
|
complex(8) :: z
|
|
real :: y
|
|
end
|
|
|
|
!Expect: m.mod
|
|
!module m
|
|
! real(4)::x
|
|
! integer(4)::i
|
|
! complex(8)::z
|
|
! real(4)::y
|
|
! namelist/nl1/x,y,i,z
|
|
! namelist/nl2/y,x
|
|
!end
|