summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/iostat_2.f90
blob: 124567c1e3221b4a18f7fd18db9f6c6818c3626c (plain)
1
2
3
4
5
6
7
8
! PR libfortran/23784
! { dg-do run }
  integer i
  close(10, status="whatever", iostat=i)
  if (i == 0) call abort()
  write(17,*) 'foo'
  close(17, status="delete")
  end