OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [list_read_7.f90] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do run }
2
! PR33400 Formatted read fails if line ends without line break
3
! Test case modified from that in PR by 
4
integer, parameter :: fgsl_strmax = 128
5
character(len=fgsl_strmax) :: ieee_str1, ieee_str2
6
open(unit=20, file='test.dat',form='FORMATTED', status="replace")
7
write(20,'(a)',advance="no") ' 1.01010101010101010101010101010101&
8
       &01010101010101010101*2^-2 1.01010101010101010101011*2^-2'
9
rewind(20)
10
read(20, fmt=*) ieee_str1, ieee_str2
11
if (trim(ieee_str1) /= &
12
    '1.0101010101010101010101010101010101010101010101010101*2^-2') &
13
  call abort
14
if (trim(ieee_str2) /= &
15
     '1.01010101010101010101011*2^-2') &
16
  call abort
17
close(20, status="delete")
18
end

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.