Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gfortran.dg/coarray_44.f90 @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 ! { dg-do compile } | |
2 ! { dg-options "-fcoarray=single" } | |
3 ! | |
4 ! PR fortran/70071 | |
5 ! Based on testcases by Gerhard Steinmetz | |
6 | |
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 |