☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gfortran.dg
/
zero_sized_6.f90
☽
☼
gcc/testsuite/gfortran.dg/zero_sized_6.f90
code
plain
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