hppa64: Fix fmt_f_default_field_width_3.f90 and fmt_g_default_field_width_3.f90
[official-gcc.git] / gcc / testsuite / gfortran.dg / coarray_44.f90
blob545b5462251edcf883dab5a072715890527ba025
1 ! { dg-do compile }
2 ! { dg-options "-fcoarray=single" }
4 ! PR fortran/70071
5 ! Based on testcases by Gerhard Steinmetz
7 program pr70071
8 implicit none
9 integer, allocatable :: z(:)[:,:]
10 allocate (z(2)[1::2,*]) ! { dg-error "Bad array dimension" }
11 allocate (z(1::2)[2,*]) ! { dg-error "Bad array specification in ALLOCATE" }
12 end program pr70071
14 ! { dg-prune-output "Bad coarray specification in ALLOCATE statement" }