URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [proc_ptr_3.f90] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do run }!! PROCEDURE POINTERS without the PROCEDURE statement!! Contributed by Janus Weil <janus@gcc.gnu.org>real function e1(x)real :: xe1 = x * 3.0end functionsubroutine e2(a,b)real, intent(inout) :: areal, intent(in) :: ba = a + bend subroutineprogram proc_ptr_3real, external, pointer :: fppointer :: spinterfacesubroutine sp(a,b)real, intent(inout) :: areal, intent(in) :: bend subroutine spend interfacereal, external :: e1interfacesubroutine e2(a,b)real, intent(inout) :: areal, intent(in) :: bend subroutine e2end interfacereal :: c = 1.2fp => e1if (abs(fp(2.5)-7.5)>0.01) call abort()sp => e2call sp(c,3.4)if (abs(c-4.6)>0.01) call abort()end
