Retro68/gcc/gcc/testsuite/gfortran.dg/pr70870_1.f90
Wolfgang Thaller 6fbf4226da gcc-9.1
2019-06-20 20:10:10 +02:00

11 lines
307 B
Fortran

! { dg-do compile }
! { dg-options "-std=gnu" }
! PR fortran/70870
! Contributed by Vittorio Zecca <zeccav at gmail dot com >
type t
integer :: g=0 ! default initialization
end type
type(t) :: v2
data v2/t(2)/ ! { dg-error "default initialization shall not" }
end