annotate gcc/testsuite/gfortran.dg/read_float_1.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 ! { dg-options "-std=legacy" }
kono
parents:
diff changeset
3 !
kono
parents:
diff changeset
4 ! PR18218
kono
parents:
diff changeset
5 ! The IO library has an algorithm that involved repeated multiplication by 10,
kono
parents:
diff changeset
6 ! resulting in introducing large cumulative floating point errors.
kono
parents:
diff changeset
7 program foo
kono
parents:
diff changeset
8 character*20 s
kono
parents:
diff changeset
9 real(kind=8) d
kono
parents:
diff changeset
10 s = "-.18774312893273 "
kono
parents:
diff changeset
11 read(unit=s, fmt='(g20.14)') d
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
12 if (d + 0.18774312893273d0 .gt. 1d-13) STOP 1
111
kono
parents:
diff changeset
13 end program
kono
parents:
diff changeset
14