2 ! { dg-options "-std=legacy" }
6 integer, parameter :: dbl
= selected_real_kind(p
=14, r
=99)
8 call checkit("101,1.,2.,3.,7,7")
9 call checkit ("102,1.,,3.,,7")
10 call checkit (",1.,,3.,, ")
14 subroutine checkit (text
)
17 real(dbl
) :: R1
, R2
, R3
18 10 format (I8
,3ES16
.8
,2I8
)
20 I1
=-99; I2
=-99; I3
=-99
21 R1
=-99._DBL
; R2
=-99._DBL
; R3
=-99._DBL
22 read(text
,10) I1
, R1
, R2
, R3
, I2
, I3
26 if (R1
== -99._DBL
) stop 4
27 if (R2
== -99._DBL
) stop 5
28 if (R3
== -99._DBL
) stop 6