3 ! PR39630: Fortran 2003: Procedure pointer components.
5 ! Basic test for PPCs with FUNCTION interface and NOPASS.
7 ! Contributed by Janus Weil <janus@gcc.gnu.org>
10 procedure(fcn
), pointer, nopass
:: ppc
11 procedure(abstr
), pointer, nopass
:: ppc1
16 integer function abstr(x
)
17 integer, intent(in
) :: x
22 procedure(fcn
), pointer :: f
27 ! Check with interface from contained function
30 if (base
/=4) call abort
33 ! Check with abstract interface
36 if (base
/=8) call abort
39 ! Check compatibility components with non-components
42 if (base
/=12) call abort
47 integer function fcn(x
)
48 integer, intent(in
) :: x
52 subroutine foo (arg
, i
)
53 procedure (fcn
), pointer :: arg
55 if (arg(i
)/=2*i
) call abort