blob: b09f167fc7c77006512c2c05fd3a503ba5e0d9c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
! { dg-do run }
! Problem report: http://gcc.gnu.org/ml/fortran/2010-05/msg00139.html
!
module globals
implicit none
integer j
data j/1/
end module
program test
use globals
implicit none
character(len=80) str
integer :: i
data i/0/
namelist /nl/i,j
open(unit=10,status='scratch')
write(10,nl)
i = 42
j = 42
rewind(10)
read(10,nl)
if (i /= 0 .or. j /= 1) call abort
close(10)
end program
! { dg-final { cleanup-modules "globals" } }
|