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

7 lines
134 B
Fortran

! { dg-do compile }
real :: a
a = 6.0
open (unit = 6, file = 'foo', access = a) ! { dg-error "must be of type CHARACTER" }
end