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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.fortran-torture/] [execute/] [entry_8.f90] - Rev 695

Compare with Previous | Blame | View Log

module entry_8_m
type t
  integer i
  real x (5)
end type t
end module entry_8_m

function f (i)
  use entry_8_m
  type (t) :: f,g
  f % i = i
  return
  entry g (x)
  g%x = x
end function f

use entry_8_m
type (t) :: f, g, res

res = f (42)
if (res%i /= 42) call abort ()
res = g (1.)
if (any (res%x /= 1.)) call abort ()
end

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.