re PR fortran/78741 (ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1534)
[official-gcc.git] / gcc / testsuite / gfortran.dg / negative_unit2.f90
blob85da3518c6624df3c1c81b3d1a84ac9295d8c660
1 ! { dg-do run }
2 ! Test case submitted by Dominique d'Humieres
3 program negative_unit2
4 integer :: i, j
5 ! i should be <= NEWUNIT_FIRST in libgfortran/io/unit.c
6 i = -100
7 write(unit=i,fmt=*, iostat=j) 10
8 if (j == 0) STOP 1
9 end program negative_unit2