summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/coarray_13.f90
blob: bbd1ad49173e7656d6cbf6257b20a6ad18c7f0bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
! { dg-do run }
! { dg-options "-fcoarray=single" }
!
! Coarray support -- allocatable array coarrays
! PR fortran/18918
! PR fortran/43931
!
program test
  implicit none
  call one()
contains
  subroutine one()
    integer, allocatable :: a(:)[:,:,:]
    allocate(a(1)[-4:9,8,4:*])
  end subroutine one
  subroutine four(C)
    integer, allocatable :: C(:)[:]
 end subroutine four
end program test