aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/pure_initializer_3.f90
blob: 91ec178f14d4f1edef567295d595bcf206dac108 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
! { 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