Projet_SETI_RISC-V/riscv-gnu-toolchain/gcc/gcc/testsuite/gfortran.dg/pr95981.f90

10 lines
217 B
Fortran

! { dg-do compile }
program p
type t
end type
class(t) :: x(:) ! { dg-error "must be dummy, allocatable or pointer" }
type(t) :: y(size(x,1)) ! { dg-error "must be constant of INTEGER type" }
end