Debian Codegraph @

gcc/testsuite/gfortran.dg/zero_sized_6.f90

raw
1 ! { dg-do compile }
2 ! PR38709 - ICE-on-invalid on zero-sized array in init-expr.
3
4 INTEGER, PARAMETER :: a(1) = (/ 1 /)
5 INTEGER, PARAMETER :: i = a(shape(1)) ! { dg-error "Incompatible ranks" }
6 END