PR libfortran/23262
[official-gcc.git] / gcc / testsuite / gfortran.dg / pr18210.f90
blob6095984137899e7868f3040784e5d1b5c17f2dbb
1 ! { dg-do run }
2 ! Names in upper case and object names starting column 2
3 ! Based on example provided by thomas.koenig@online.de
5 program pr18210
7 real :: a
8 character*80 :: buffer
9 namelist /foo/ a
11 a = 1.4
12 open (10, status = "scratch")
13 write (10,foo)
14 rewind (10)
15 read (10, '(a)') buffer
16 if (buffer(2:4) /= "FOO") call abort ()
17 read (10, '(a)') buffer
18 if (buffer(1:2) /= " A") call abort ()
19 close (10)
21 end program pr18210