view gcc/testsuite/gfortran.dg/pure_initializer_3.f90 @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line source

! { dg-do compile }
!
! PR fortran/42922
!
! Contributed by mrestelli@gmail.com
!
pure subroutine psub()
  implicit none
  type ilist
    integer :: i = 0
  end type ilist
  type(ilist) :: x
  x%i = 1
end subroutine psub