The following _action_ options are always used with `-fsyntax-only` (also an _action_ option): * -fdebug-dump-symbols * -fdebug-dump-parse-tree This patch makes the above options imply `-fsyntax-only`. From the perspective of `f18` this change saves typing and is otherwise a non-functional change. But it will simplify things in the new driver, `flang-new`, in which only the last action option is taken into account and executed. In other words, the following would only run `-fsyntax-only`: ``` flang-new -fdebug-dump-symbols -fsyntax-only <input> ``` whereas this would only run `-fdebug-dump-symbols`: ``` flang-new -fsyntax-only -fdebug-dump-symbols <input> ``` Differential Revision: https://reviews.llvm.org/D96528
11 lines
425 B
Fortran
11 lines
425 B
Fortran
! RUN: %f18 -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
|