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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.fortran-torture/] [execute/] [pr23373-1.f90] - Rev 760

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

program main
  implicit none
  real, dimension (:), pointer :: x
  x => null ()
  x => test (x)
  if (.not. associated (x)) call abort
  if (size (x) .ne. 10) call abort
contains
  function test (p)
    real, dimension (:), pointer :: p, test
    if (associated (p)) call abort
    allocate (test (10))
    if (associated (p)) call abort
  end function test
end program main

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.