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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [direct_io_6.f90] - Rev 841

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

! { dg-do run }
! pr31366 last record truncated for read after short write, direct access file.
! test case derived from pr, submitted by jerry delisle  <jvdelisle@gcc.gnu.org
      program test
      character(len=8) :: as_written, as_read
      character(1) :: byte
      as_written = "12345678"
      open (76, access="direct", recl=12, status="scratch")
      write(76, rec=1) as_written
      write(76, rec=2) as_written
      read(76, rec=1) as_read, byte, byte, byte, byte
      read(76, rec=2, err=3) as_read, byte, byte, byte, byte
      stop
  3   call abort()
      end program test

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

powered by: WebSVN 2.1.0

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