Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gfortran.dg / proc_ptr_27.f90
blob83f09598110dde3a4e1b8278e84ea59e2ec999b3
1 ! { dg-do compile }
3 ! PR fortran/44446
5 ! Contributed by Marco Restelli.
7 ! Procedure pointer with PROTECTED was wrongly rejected.
9 module m
10 implicit none
11 abstract interface
12 pure function i_f(x) result(y)
13 real, intent(in) :: x
14 real :: y
15 end function i_f
16 end interface
17 procedure(i_f), pointer, protected :: p_f => null()
18 end module m
20 ! { dg-final { cleanup-modules "m" } }