mirror of git://gcc.gnu.org/git/gcc.git
PR 48587 Newunit allocator
2016-10-15 Janne Blomqvist <jb@gcc.gnu.org>
PR libfortran/48587
* gfortran.dg/negative_unit2.f90: New testcase.
From-SVN: r241200
This commit is contained in:
parent
c04d4ede17
commit
e2a02db769
|
|
@ -0,0 +1,9 @@
|
||||||
|
! { dg-do run }
|
||||||
|
! Test case submitted by Dominique d'Humieres
|
||||||
|
program negative_unit2
|
||||||
|
integer :: i, j
|
||||||
|
! i should be <= NEWUNIT_FIRST in libgfortran/io/unit.c
|
||||||
|
i = -100
|
||||||
|
write(unit=i,fmt=*, iostat=j) 10
|
||||||
|
if (j == 0) call abort
|
||||||
|
end program negative_unit2
|
||||||
Loading…
Reference in New Issue