[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gfortran.dg / proc_ptr_comp_10.f90
blob715d4368a7510fed33458b8bae41d5889105dd52
1 ! { dg-do compile }
3 ! PR 40176: Fortran 2003: Procedure pointers with array return value
5 ! Contributed by Janus Weil <janus@gcc.gnu.org>
7 module m
9 abstract interface
10 function ai()
11 real, dimension(3) :: ai
12 end function
13 end interface
15 type t
16 procedure(ai), pointer, nopass :: ppc
17 end type
19 procedure(ai), pointer :: pp
21 end module
23 program test
24 use m
25 type(t) :: obj
26 obj%ppc => pp
27 pp => obj%ppc
28 end