view gcc/testsuite/gfortran.dg/derived_constructor_comps_4.f90 @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 84e7813d76e9
children
line wrap: on
line source

! { dg-do run }
!
! PR 47789: [F03] Structure constructor of type extending DT with no components
!
! Contributed by eddyg_61-bugzilla@yahoo.it

type:: one
end type

type, extends(one) :: two
  integer :: a
end type

type(two) :: wo = two(6)

if (wo%a /= 6) STOP 1

end