repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
modula2: Simplify REAL/LONGREAL/SHORTREAL node creation.
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
pr88169_1.f90
blob
6ea4aba5e10ac24073bcce3d7ecc649ab39c847b
1
! { dg-do run }
2
module
foo_nml
3
implicit none
4
real
::
x
= -
1
5
namelist
/
foo
/
x
6
end module
7
8
program
main
9
use
foo_nml
,
only
:
bar
=>
foo
,
x
10
implicit none
11
integer
fd
12
x
=
42
13
open
(
newunit
=
fd
,
file
=
'tmp.dat'
,
status
=
'replace'
)
14
write
(
fd
,
nml
=
bar
)
15
close
(
fd
)
16
open
(
newunit
=
fd
,
file
=
'tmp.dat'
,
status
=
'old'
)
17
read
(
fd
,
nml
=
bar
)
18
if
(
x
/=
42
)
stop
1
19
close
(
fd
)
20
end program
21
! { dg-final { cleanup-modules "foo_nml" } }