Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gfortran.dg / iostat_2.f90
blobafda93e8092d7e8560a5223b810b4db5ee69d257
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