annotate gcc/testsuite/gfortran.dg/data_namelist_conflict.f90 @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 84e7813d76e9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! { dg-do run }
kono
parents:
diff changeset
2 ! Problem report: http://gcc.gnu.org/ml/fortran/2010-05/msg00139.html
kono
parents:
diff changeset
3 !
kono
parents:
diff changeset
4 module globals
kono
parents:
diff changeset
5 implicit none
kono
parents:
diff changeset
6 integer j
kono
parents:
diff changeset
7 data j/1/
kono
parents:
diff changeset
8 end module
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 program test
kono
parents:
diff changeset
11 use globals
kono
parents:
diff changeset
12 implicit none
kono
parents:
diff changeset
13 character(len=80) str
kono
parents:
diff changeset
14 integer :: i
kono
parents:
diff changeset
15 data i/0/
kono
parents:
diff changeset
16 namelist /nl/i,j
kono
parents:
diff changeset
17 open(unit=10,status='scratch')
kono
parents:
diff changeset
18 write(10,nl)
kono
parents:
diff changeset
19 i = 42
kono
parents:
diff changeset
20 j = 42
kono
parents:
diff changeset
21 rewind(10)
kono
parents:
diff changeset
22 read(10,nl)
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
23 if (i /= 0 .or. j /= 1) STOP 1
111
kono
parents:
diff changeset
24 close(10)
kono
parents:
diff changeset
25 end program