2 ! { dg-options "-fcray-pointer" }
4 ! Test the implementation of Cray pointers to procedures.
5 program cray_pointers_7
8 integer, external :: fn
11 ! We can't mix function and subroutine pointers.
12 pointer (subptr
,subpte
)
15 ! Declare pointee types.
17 integer, external :: fnpte
21 ! Check pointers to subroutines.
24 if (tmp
.ne
. 17) call abort()
26 ! Check pointers to functions.
29 if (tmp
.ne
. 14) call abort()
31 end program cray_pointers_7
33 ! Trivial subroutine to be called through a Cray pointer.
39 ! Trivial function to be called through a Cray pointer.