2021-02-17 23:55:56 +08:00
|
|
|
! RUN: %flang_fc1 -fdebug-dump-parse-tree %s 2>&1 | FileCheck %s
|
2020-10-31 03:53:42 +08:00
|
|
|
! 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
|