Projet_SETI_RISC-V/riscv-gnu-toolchain/gcc/gcc/testsuite/gfortran.dg/pr66107.f90
2023-03-06 14:48:14 +01:00

7 lines
227 B
Fortran

! { dg-do compile }
! PR fortran/66107
subroutine p
integer n
character(*), parameter :: z(1) = [character(len=n) :: 'x'] ! { dg-error "Cannot initialize parameter array at .1. with variable length elements" }
end subroutine