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_comp_5.f90] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do run }!! PR39630: Fortran 2003: Procedure pointer components.!! Nested types / double component references.!! Contributed by Janus Weil <janus@gcc.gnu.org>abstract interfacesubroutine asend subroutineinteger function af()end functionend interfacetype :: t1procedure(as), pointer, nopass :: sprocedure(af), pointer, nopass :: fend typetype :: t2type(t1) :: cend typetype(t2) :: xinteger :: j = 0x%c%s => iscall x%c%sif (j/=5) call abortx%c%f => ifj=x%c%f()if (j/=42) call abortcontainssubroutine isj = 5end subroutineinteger function if()if = 42end functionend
