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/] [write_rewind_1.f] - Blame information for rev 149

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

Line No. Rev Author Line
1 149 jeremybenn
! { dg-do run }
2
! PR 26499 : Positioning of EOF after  write and rewind.
3
! Test case from Dale Ranta in PR.
4
! Submitted by Jerry DeLisle <jvdelisle@verizon.net>.
5
      program test
6
      dimension idata(100)
7
      open(unit=11,form='unformatted')
8
      write(11)idata
9
      write(11)idata
10
      read(11,end=        1000 )idata
11
      call abort()
12
 1000 continue
13
      rewind 11
14
      write(11)idata
15
      close(11,status='keep')
16
      open(unit=11,form='unformatted')
17
      rewind 11
18
      read(11)idata
19
      read(11, end=250)idata
20
      call abort()
21
 250  continue
22
      close(11,status='delete')
23
      end

powered by: WebSVN 2.1.0

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