Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / gfortran.dg / open_new.f90
blob3b8e95ae9440c1cacddbf7a0623a62d62d8e95a9
1 ! { dg-do run }
2 ! PR 18982: verifies that opening an existing file with
3 ! status="new" is an error
4 program main
5 nout = 10
6 open(nout, file="foo.dat", status="replace") ! make sure foo.dat exists
7 close(nout)
8 open(nout, file="foo.dat", status="new",err=100)
9 call abort ! This should never happen
10 100 continue
11 end program main