Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/large_unit_2.f90 @ 132:d34655255c78
update gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 10:21:07 +0900 (2018-10-25) |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
! { dg-do run } ! PR31201 Too large unit number generates wrong code ! Test case by Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> integer :: i logical :: l character(len=60) :: s open(2_8*huge(0)+20_8,file="foo",iostat=i) if (i == 0) STOP 1 open(2_8*huge(0)+20_8,file="foo",err=99) STOP 2 99 inquire(unit=18,opened=l) if (l) STOP 3 end