URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [proc_ptr_comp_11.f90] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do run }!! PR 40427: Procedure Pointer Components with OPTIONAL arguments!! Original test case by John McFarland <john.mcfarland@swri.org>! Modified by Janus Weil <janus@gcc.gnu.org>PROGRAM progABSTRACT INTERFACESUBROUTINE sub_template(i,j,o)INTEGER, INTENT(in) :: iINTEGER, INTENT(in), OPTIONAL :: j, oEND SUBROUTINE sub_templateEND INTERFACETYPE containerPROCEDURE(sub_template), POINTER, NOPASS :: sEND TYPE containerPROCEDURE(sub_template), POINTER :: fTYPE (container) :: cc%s => subf => subCALL f(2,o=4)CALL c%s(3,o=6)CONTAINSSUBROUTINE sub(i,arg2,arg3)INTEGER, INTENT(in) :: iINTEGER, INTENT(in), OPTIONAL :: arg2, arg3if (present(arg2)) call abort()if (.not. present(arg3)) call abort()if (2*i/=arg3) call abort()END SUBROUTINE subEND PROGRAM prog
