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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [read_x_past.f] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
! { dg-do run }
2
! { dg-options -w }
3
! PR 26661 : Test reading X's past file end with no LF or CR.
4
! PR 26880 : Tests that rewind clears the gfc_unit read_bad flag.
5
! Contributed by Jerry DeLisle <jvdelisle@gcc.gnu.org>.
6
      implicit none
7
      character(3) a(4)
8
      integer i
9
      open (10)
10
 10   format(A,$)  ! This is not pedantic
11
      write(10,10)' abc def ghi jkl'
12
      rewind(10)
13
      read(10,20)(a(i),i=1,4)
14
      if (a(4).ne."jkl") call abort()
15
 20   format(1x,a3,1x,a3,1x,a3,1x,a3,10x)
16
      close(10, status="delete")
17
      end

powered by: WebSVN 2.1.0

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