3 ! PR 63674: [F03] procedure pointer and non/pure procedure
5 ! Contributed by Valery Weber <valeryweber@hotmail.com>
11 pure
integer function pf()
19 procedure(nf
), nopass
, pointer :: nf
=> NULL() ! non-pure function
20 procedure(pf
), nopass
, pointer :: pf
=> NULL() ! pure function
21 procedure(ns
), nopass
, pointer :: ns
=> NULL() ! non-pure subroutine
22 procedure(ps
), nopass
, pointer :: ps
=> NULL() ! pure subroutine
25 pure
integer function eval(a
)
26 type(t
), intent(in
) :: a
28 eval
= a
%nf() ! { dg-error "Reference to impure function" }
30 call a
%ns() ! { dg-error "is not PURE" }