2 ! PR25039 This test checks that commas in input fields
for formatted sequential
3 ! reads are interpreted as the
read completion
. If no comma is encountered the
4 ! normal field width determines the
end of the
read. The test case also checks
5 ! that
default blanks are interpreted as NULL in numerics
.
6 ! Test case derived from sample provided in PR by Iwan Kawrakow
.
7 ! Contributed by Jerry DeLisle
<jvdelisle@gcc
.gnu
.org
>
13 open
(10, status
="scratch")
14 write(10,'(a)') "1, 235"
16 read(10,'(3i2)') i1
,i2
,i3
17 if(i1
.ne
.1) call abort
()
18 if(i2
.ne
.2) call abort
()
19 if(i3
.ne
.35) call abort
()
21 ! Make sure commas are
read in
character strings
.
22 write(10,'(a)') "1234,6789,"
25 if(a1
.ne
."1234,6789,") call abort
()