Break circular dependency between FIR dialect and utilities
[llvm-project.git] / flang / test / Semantics / rewrite01.f90
blob3f9198fc449bc6d23f6307647b3a61697d901f94
1 ! RUN: %flang_fc1 -fdebug-dump-parse-tree %s 2>&1 | FileCheck %s
2 ! Ensure that READ(CVAR) [, item-list] is corrected when CVAR is a
3 ! character variable so as to be a formatted read from the default
4 ! unit, not an unformatted read from an internal unit (which is not
5 ! possible in Fortran).
6 character :: cvar
7 ! CHECK-NOT: IoUnit -> Variable -> Designator -> DataRef -> Name = 'cvar'
8 ! CHECK: Format -> Expr = 'cvar'
9 read(cvar)
10 end