Files
llvm-project/flang/test/Semantics/modfile81.f90
Florian Hahn 3afa68fb0e [Flang] Rename modfile75.f90 to modfile81.f90. (NFC)
There is already a modfile75.F90 test, and the new test added in
https://github.com/llvm/llvm-project/pull/170349 breaks git on macOS.
2025-12-13 11:22:59 +00:00

29 lines
614 B
Fortran

! RUN: %python %S/test_modfile.py %s %flang_fc1
module m
type dt
procedure(sub), pointer, nopass :: p1 => sub
procedure(sub), pointer, nopass :: p2 => null()
procedure(sub), pointer, nopass :: p3
end type
procedure(sub), pointer :: p4 => sub
procedure(sub), pointer :: p5 => null()
contains
subroutine sub
end
end
!Expect: m.mod
!module m
!type::dt
!procedure(sub),nopass,pointer::p1=>sub
!procedure(sub),nopass,pointer::p2=>NULL()
!procedure(sub),nopass,pointer::p3
!end type
!intrinsic::null
!procedure(sub),pointer::p4
!procedure(sub),pointer::p5
!contains
!subroutine sub()
!end
!end