OpenCores
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_10.f90] - Rev 316

Go to most recent revision | Compare with Previous | Blame | View Log

! { dg-do compile }
!
! PR 40176:  Fortran 2003: Procedure pointers with array return value
!
! Contributed by Janus Weil <janus@gcc.gnu.org>

module m

abstract interface
  function ai()
    real, dimension(3) :: ai
  end function
end interface

type t
  procedure(ai), pointer, nopass :: ppc
end type

procedure(ai), pointer :: pp

end module

program test
use m
type(t) :: obj
obj%ppc => pp
pp => obj%ppc
end

! { dg-final { cleanup-modules "m" } }

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.