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