blob: 715d4368a7510fed33458b8bae41d5889105dd52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
! { dg-do compile }
!
! PR 40176: Fortran 2003: Procedure pointers with array return value
!
! Contributed by Janus Weil <janus@gcc.gnu.org>
module m
abstract interface
function ai()
real, dimension(3) :: ai
end function
end interface
type t
procedure(ai), pointer, nopass :: ppc
end type
procedure(ai), pointer :: pp
end module
program test
use m
type(t) :: obj
obj%ppc => pp
pp => obj%ppc
end
|