aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/pr59440-1.f90
blob: d874c6dcec53f02bee687a1288e9b21811659b3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
! PR fortran/59440
! { dg-do compile }
! { dg-options "-O2 -g" }

module pr59440
  implicit none
  type t
     integer :: grid = 0
  end type t
contains
  subroutine read_nml (nnml, s)
    integer, intent(in)  :: nnml
    type(t), intent(out) :: s
    integer              :: grid
    namelist /N/ grid
    call read_nml_type_2
    s%grid = grid
  contains
    subroutine read_nml_type_2
      read (nnml, nml=N)
    end subroutine read_nml_type_2
  end subroutine read_nml
end module pr59440