view gcc/testsuite/gfortran.dg/pr59440-3.f90 @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
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