OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.fortran-torture/] [compile/] [actual.f90] - Rev 149

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

module modull

contains

function fun( a )
  real, intent(in) :: a
  real :: fun
  fun = a
end function fun

end module modull



program t5

use modull

real :: a, b

b = foo( fun, a )

contains

function foo( f, a )
  real, intent(in) :: a
  interface
    function f( x )
      real, intent(in) :: x
      real :: f
    end function f
  end interface
  real :: foo

  foo = f( a )
end function foo

end program t5

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.