Files
clang-p2996/flang/test/Semantics/modfile15.f90
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

36 lines
613 B
Fortran

! RUN: %python %S/test_modfile.py %s %flang_fc1
module m
type :: t
procedure(a), pointer, pass :: c
procedure(a), pointer, pass(x) :: d
contains
procedure, pass(y) :: a, b
end type
contains
subroutine a(x, y)
class(t) :: x, y
end
subroutine b(y)
class(t) :: y
end
end module
!Expect: m.mod
!module m
! type::t
! procedure(a),pass,pointer::c
! procedure(a),pass(x),pointer::d
! contains
! procedure,pass(y)::a
! procedure,pass(y)::b
! end type
!contains
! subroutine a(x,y)
! class(t)::x
! class(t)::y
! end
! subroutine b(y)
! class(t)::y
! end
!end