2 ! { dg-options "-std=gnu" }
7 integer, parameter :: j(size(real_kinds)+4)=[REAL_KINDS, [4, 4, 4, 4]]
8 character(50) :: astring
12 do i=1,size(real_kinds)
14 write(astring, '(ru,g0)') 1.0/real(10.0, kind=j(1))
16 write(astring, '(ru,g0)') 1.0/real(10.0, kind=j(2))
18 write(astring, '(ru,g0)') 1.0/real(10.0, kind=j(3))
20 write(astring, '(ru,g0)') 1.0/real(10.0, kind=j(4))
22 if (astring(2:2) /= '9') then
23 l = index(astring, 'E')
25 !print *, i, l, trim(astring)
30 if (n /= 0) call abort