11 lines · plain
1! RUN: %flang_fc1 -fdebug-dump-parse-tree %s 2>&1 | FileCheck %s2! Ensure that READ(CVAR) [, item-list] is corrected when CVAR is a3! character variable so as to be a formatted read from the default4! unit, not an unformatted read from an internal unit (which is not5! possible in Fortran).6character :: cvar7! CHECK-NOT: IoUnit -> Variable -> Designator -> DataRef -> Name = 'cvar'8! CHECK: Format -> Expr = 'cvar'9read(cvar)10end11