fix pr/45972
[official-gcc.git] / gcc / testsuite / gfortran.dg / namelist_62.f90
blob23e2562076641bbe1447a6580c00742e4d92356d
1 ! { dg-do compile }
3 ! PR fortran/45066
5 ! Contributed by Michael Richmond.
7 ! Was failing due to a -fwhole-file bug.
10 MODULE GA_commons
11 INTEGER :: nichflg(2)
12 END MODULE GA_commons
14 PROGRAM gafortran
15 USE GA_commons
16 NAMELIST /ga/ nichflg
17 READ (23, nml=ga)
18 END PROGRAM gafortran
20 ! { dg-final { cleanup-modules "ga_commons" } }