(root)/
gcc-13.2.0/
gcc/
testsuite/
gfortran.dg/
open_access_1.f90
! { dg-do compile }

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