blob: 3f9198fc449bc6d23f6307647b3a61697d901f94 [file] [log] [blame]
! RUN: %flang_fc1 -fdebug-dump-parse-tree %s 2>&1 | FileCheck %s
! Ensure that READ(CVAR) [, item-list] is corrected when CVAR is a
! character variable so as to be a formatted read from the default
! unit, not an unformatted read from an internal unit (which is not
! possible in Fortran).
character :: cvar
! CHECK-NOT: IoUnit -> Variable -> Designator -> DataRef -> Name = 'cvar'
! CHECK: Format -> Expr = 'cvar'
read(cvar)
end