diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/coarray_13.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/coarray_13.f90 | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/coarray_13.f90 b/gcc/testsuite/gfortran.dg/coarray_13.f90 new file mode 100644 index 000000000..bbd1ad491 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/coarray_13.f90 @@ -0,0 +1,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 |