* intrinsic.c: Add EXECUTE_COMMAND_LINE intrinsic.
[official-gcc.git] / gcc / testsuite / gfortran.dg / proc_ptr_26.f90
blob044f0a403bd5464d2a70833741c30b1858e9553c
1 ! { dg-do run }
3 ! PR fortran/42597
5 ! Contributed by mrestelli@gmail.com
8 module mod_a
9 implicit none
11 abstract interface
12 pure function intf(x) result(y)
13 real, intent(in) :: x(:,:)
14 real :: y(size(x,1),size(x,1),size(x,2))
15 end function intf
16 end interface
18 procedure(intf), pointer :: p_fun => null()
19 end module mod_a
21 program main
22 use mod_a
23 implicit none
25 procedure(intf), pointer :: p_fun2 => null()
27 if (associated(p_fun) .or. associated(p_fun2)) &
28 call abort ()
29 end program main
31 ! { dg-final { cleanup-modules "mod_a" } }