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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [iostat_1.f90] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
! { dg-do run }
2
! PR 23598 - The iostat variable wasn't reset if the previous
3
! I/O library call had an error.
4
program main
5
  implicit none
6
  integer :: ios, i
7
  open (10, pad='no', status='scratch')
8
  write (10, '(A)') '1','1'
9
  rewind (10)
10
  read (10,'(I2)',iostat=ios) i
11
  ios = -4321
12
  read (10, '(I1)', iostat=ios) i
13
  if (ios /= 0) call abort
14
end program main

powered by: WebSVN 2.1.0

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