Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/read_float_4.f90 @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 84e7813d76e9 |
line wrap: on
line source
! { dg-do run } ! ! PR libgfortran/53051 ! ! Check that reading "4.0q0" works, i.e. floating-point ! numbers which use "q" to indicate the exponential. ! (Which is a vendor extension.) ! character(len=20) :: str real :: r integer :: i r = 0 str = '1.0q0' read(str, *, iostat=i) r if (r /= 1.0 .or. i /= 0) call abort() !print *, r end