diff --git a/gcc/testsuite/gfortran.dg/unf_read_corrupted_2.f90 b/gcc/testsuite/gfortran.dg/unf_read_corrupted_2.f90 index 2a75da7c8555..1788b457d192 100644 --- a/gcc/testsuite/gfortran.dg/unf_read_corrupted_2.f90 +++ b/gcc/testsuite/gfortran.dg/unf_read_corrupted_2.f90 @@ -14,7 +14,7 @@ d(i)=i end do - open (3,file='a',form='unformatted') + open (3,form='unformatted', status="scratch") write (3) a,b,c,d,e rewind 3 d = 0