3 ! PR39630: Fortran 2003: Procedure pointer components.
5 ! Basic test for PPCs with SUBROUTINE interface and NOPASS.
7 ! Contributed by Janus Weil <janus@gcc.gnu.org>
11 procedure(sub
), pointer, nopass
:: ppc
12 procedure(), pointer, nopass
:: proc
15 type, extends(t
) :: t2
16 procedure(), pointer, nopass
:: proc2
22 procedure(sub
),pointer :: pp
30 if (sum
/=1) call abort
32 if (sum
/=3) call abort
34 if (sum
/=6) call abort
36 ! calling object as argument
39 if (x
%i
/=7) call abort
44 if (sum
/=10) call abort
47 if (sum
/=15) call abort
50 if (sum
/=21) call abort
55 integer, intent(in
) :: y
60 type(t
),intent(inout
) :: arg