Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / gfortran.dg / iostat_2.f90
blobf475064661151c88650f43a5a46fcc61f7339ea3
1 ! PR libfortran/23784
2 ! { dg-do run { target fd_truncate } }
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