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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [coarray_19.f90] - Rev 858

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

! { dg-do compile }
! { dg-options "-fcoarray=single" }
!
! PR fortran/18918
!

! Was failing before as the "x%a()[]" was
! regarded as coindexed
subroutine test2()
  type t
    integer, allocatable :: a(:)[:]
  end type t
  type(t), SAVE :: x
  allocate(x%a(1)[*])
end subroutine test2


module m
  integer, allocatable :: a(:)[:]
end module m

! Was failing as "a" was allocatable but
! as->cotype was not AS_DEFERERED.
use m
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.