3 ! PR 36704: Procedure pointer as function result
5 ! Contributed by Janus Weil <janus@gcc.gnu.org>
12 procedure(integer),pointer :: j
18 integer,intent(inout
) :: y
30 procedure(integer),pointer :: p
,p2
31 procedure(sub
),pointer :: ps
71 if (p(-10)/=p2(-10)) STOP 13
74 if (p(-11)/=11) STOP 14
79 procedure(integer),pointer :: a
84 procedure(integer) :: b
91 procedure(integer) :: c
124 integer function f(x
)
125 integer,intent(in
) :: x
133 integer function g(x
)
134 integer,intent(in
) :: x
144 integer,intent(inout
) :: b
150 integer,intent(inout
) :: a
168 procedure(integer),pointer :: k
,arg
174 ! we cannot use iabs directly as it is elemental
176 pure
function interf_iabs(x
)
177 integer, intent(in
) :: x
178 end function interf_iabs
180 procedure(interf_iabs
),pointer :: l
183 if (l(-11)/=11) STOP 15