Commit d7505f46 by Jerry DeLisle

open_errors.f90: Check for existance of temptestfile.

2007-06-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	* gfortran.dg/open_errors.f90: Check for existance of temptestfile.
	If it exists, don't try to create it.

From-SVN: r126105
parent 1a0d6f82
2007-06-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
* gfortran.dg/open_errors.f90: Check for existance of temptestfile.
If it exists, don't try to create it.
2007-06-28 Geoffrey Keating <geoffk@apple.com> 2007-06-28 Geoffrey Keating <geoffk@apple.com>
* g++.dg/ext/visibility/ms-compat-1.C: New. * g++.dg/ext/visibility/ms-compat-1.C: New.
...@@ -3,8 +3,12 @@ ...@@ -3,8 +3,12 @@
! Submitted by Jerry DeLisle <jvdelisle@gcc.gnu.org> ! Submitted by Jerry DeLisle <jvdelisle@gcc.gnu.org>
character(60) :: msg character(60) :: msg
character(25) :: n = "temptestfile" character(25) :: n = "temptestfile"
open(77,file=n,status="new") logical :: there
close(77, status="keep") inquire(file=n, exist=there)
if (.not.there) then
open(77,file=n,status="new")
close(77, status="keep")
endif
msg="" msg=""
open(77,file=n,status="new", iomsg=msg, iostat=i) open(77,file=n,status="new", iomsg=msg, iostat=i)
if (i == 0) call abort() if (i == 0) call abort()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment