summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/namelist_62.f90
blob: 23e2562076641bbe1447a6580c00742e4d92356d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
! { dg-do compile }
!
! PR fortran/45066
!
! Contributed by Michael Richmond.
!
! Was failing due to a -fwhole-file bug.
!

MODULE GA_commons
  INTEGER :: nichflg(2)
END MODULE GA_commons

PROGRAM gafortran
  USE GA_commons
  NAMELIST /ga/ nichflg
  READ (23, nml=ga)
END PROGRAM gafortran

! { dg-final { cleanup-modules "ga_commons" } }