mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-05 05:10:33 +08:00
re PR libfortran/48960 (OPEN statement modifies NEWUNIT variable on error)
2012-12-27 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/48960 * gfortran.dg/newunit_3.f90: New. From-SVN: r194738
This commit is contained in:
parent
f5b650c0ac
commit
32758afe70
@ -1,3 +1,8 @@
|
||||
2012-12-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
||||
|
||||
PR fortran/48960
|
||||
* gfortran.dg/newunit_3.f90: New.
|
||||
|
||||
2012-12-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
||||
|
||||
PR fortran/48976
|
||||
|
6
gcc/testsuite/gfortran.dg/newunit_3.f90
Normal file
6
gcc/testsuite/gfortran.dg/newunit_3.f90
Normal file
@ -0,0 +1,6 @@
|
||||
! PR48960 On ERROR newunit should not modify user variable.
|
||||
program test_newunit
|
||||
integer :: st, un = 0
|
||||
open (newunit=un, file='nonexisting.dat', status='old', iostat=st)
|
||||
if (un /= 0) call abort
|
||||
end program test_newunit
|
Loading…
x
Reference in New Issue
Block a user