2017-02-20 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / zero_sized_6.f90
blobf944fd91444309a3596763be0beac8e630bbf34f
1 ! { dg-do compile }
2 ! PR38709 - ICE-on-invalid on zero-sized array in init-expr.
4 INTEGER, PARAMETER :: a(1) = (/ 1 /)
5 INTEGER, PARAMETER :: i = a(shape(1)) ! { dg-error "Incompatible ranks" }
6 END