Debian Codegraph @

gcc/testsuite/gfortran.dg/newunit_6.f90

raw
1 ! { dg-do compile }
2 !
3 ! PR fortran/83057 - OPEN without a filename and without STATUS='SCRATCH'
4 ! could produce a warning
5
6 open(newunit=iun,file="file") ! this is ok
7 open(newunit=jun,status="scratch") ! this too
8 open(newunit=lun) ! { dg-error "NEWUNIT specifier must have" }
9 end