OSDN Git Service

2005-04-07 Thomas Koenig <Thomas.Koenig@online.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gfortran.dg / open_new.f90
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