OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [open_readonly_1.f90] - Rev 154

Compare with Previous | Blame | View Log

! { dg-do run }
! PR19451
! Writing to a non-empty readonly file caused a segfault.
! We were still trying to write the EOR after an error ocurred
program prog
  open (unit=10, file='PR19451.dat')
  write (10,*) "Hello World"
  close (10)
  open (unit=10, file='PR19451.dat', action="read")
  write (10,*,err=20) "Hello World"
  call abort()
  20 close (10, status='delete')
end program

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.