summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/open_status_1.f90
blob: df44a4461a83d21d45061e181d4af7400d85d2c7 (plain)
1
2
3
4
5
6
7
8
! { dg-do run }
! Test reopening with io status='old'
program iostatus
  open (1, file='foo', status='replace') ! Make sure file exists.
  open (1, file='foo', status='old')
  open (1, file='foo', status='old')
  close (1, status='delete')
end program iostatus