gcc/fortran/
[official-gcc.git] / gcc / testsuite / gfortran.dg / read_float_4.f90
blob01a0de8c04f193bf84dcbb1ea09918124fbabfb4
1 ! { dg-do run }
3 ! PR libgfortran/53051
5 ! Check that reading "4.0q0" works, i.e. floating-point
6 ! numbers which use "q" to indicate the exponential.
7 ! (Which is a vendor extension.)
9 character(len=20) :: str
10 real :: r
11 integer :: i
13 r = 0
14 str = '1.0q0'
15 read(str, *, iostat=i) r
16 if (r /= 1.0 .or. i /= 0) call abort()
17 !print *, r
18 end