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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [PR19872.f] - Diff between revs 154 and 816

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 154 Rev 816
! { dg-do run } 
! { dg-do run } 
! PR 19872 - closed and re-opened file not overwriten
! PR 19872 - closed and re-opened file not overwriten
      implicit none
      implicit none
      integer i(4)
      integer i(4)
      data i / 4 * 0 /
      data i / 4 * 0 /
      open(1,form='FORMATTED',status='UNKNOWN')
      open(1,form='FORMATTED',status='UNKNOWN')
      write(1,'("1 2 3 4 5 6 7 8 9")')
      write(1,'("1 2 3 4 5 6 7 8 9")')
      close(1)
      close(1)
      open(1,form='FORMATTED')
      open(1,form='FORMATTED')
      write(1,'("9 8 7 6")')
      write(1,'("9 8 7 6")')
      close(1)
      close(1)
      open(1,form='FORMATTED')
      open(1,form='FORMATTED')
      read(1,*)i
      read(1,*)i
      if(i(1).ne.9.and.i(2).ne.8.and.i(3).ne.7.and.i(4).ne.9)call abort
      if(i(1).ne.9.and.i(2).ne.8.and.i(3).ne.7.and.i(4).ne.9)call abort
      read(1,*,end=200)i
      read(1,*,end=200)i
! should only be able to read one line from the file
! should only be able to read one line from the file
      call abort
      call abort
 200  continue
 200  continue
      close(1,STATUS='DELETE')
      close(1,STATUS='DELETE')
      end
      end
 
 

powered by: WebSVN 2.1.0

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