This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, libgfortran] FIX PR26509 Catch EOR on DIRECT access write


>        write(unit=10,rec=1) 1d0  ! { dg-error "*Write exceeds length of DIRECT
> access record*" }

Hum... I don't think we can test for runtime errors. Maybe with
dg-output, but how do you mark that the test is expected to fail (and
not XFAIL it)?

On the other hand, you could simply use an error label or an iostat,
and check that it's non-zero after the write.

FX


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]