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

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

! { dg-do compile }
!
! PROCEDURE POINTERS & pointer-valued functions
!
! Contributed by Janus Weil <janus@gcc.gnu.org>

interface
  integer function f1()
  end function
end interface

interface
 function f2()
   integer, pointer :: f2
 end function
end interface

interface
 function pp1()
   integer :: pp1
 end function
end interface
pointer :: pp1

pointer :: pp2
interface
  function pp2()
    integer :: pp2
  end function
end interface

pointer :: pp3
interface
  function pp3()
    integer, pointer :: pp3
  end function
end interface

interface
  function pp4()
    integer, pointer :: pp4
  end function
end interface
pointer :: pp4


pp1 => f1

pp2 => pp1

f2 => f1        ! { dg-error "is not a variable" }

pp3 => f2

pp4 => pp3

end

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.