rt_gccstream/gcc/testsuite/gfortran.dg/open_nounit.f90

7 lines
153 B
Fortran

! { dg-do compile }
! PR43832 Missing UNIT in OPEN
open () ! { dg-error "must have UNIT" }
open (file="test") ! { dg-error "must have UNIT" }
end