1! PR libfortran/23784
2! { dg-do run }
3  integer i
4  close(10, status="whatever", iostat=i) ! { dg-warning "STATUS specifier in CLOSE statement.*has invalid value" }
5  if (i == 0) call abort()
6  write(17,*) 'foo'
7  close(17, status="delete")
8  end
9