Ivan Zhechev dc453dcf76 [Flang] Port test_modfile.sh to Python
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
2021-09-06 13:57:36 +00:00

18 lines
316 B
Fortran

! RUN: %python %S/test_modfile.py %s %flang_fc1
! Check that implicitly typed entities get a type in the module file.
module m
public :: a
private :: b
protected :: i
allocatable :: j
end
!Expect: m.mod
!module m
! real(4)::a
! real(4),private::b
! integer(4),protected::i
! integer(4),allocatable::j
!end