view gcc/testsuite/gfortran.dg/pr59440-3.f90 @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900 (2020-05-25)
parents 04ced10e8804
children
line wrap: on
line source
! PR fortran/59440
! { dg-do compile }
! { dg-options "-O2 -g" }

subroutine foo (nnml, outv)
  integer, intent(in) :: nnml
  integer, intent(out) :: outv
  integer :: grid
  call bar
  outv = grid
contains
  subroutine bar
    namelist /N/ grid
    read (nnml, nml=N)
  end subroutine bar
end subroutine foo