Add the following options: * -fdebug-dump-symbols * -fdebug-dump-parse-tree * -fdebug-dump-provenance Summary of changes: - Add 3 new frontend actions: DebugDumpSymbolsAction, DebugDumpParseTreeAction and DebugDumpProvenanceAction - Add a unique pointer to the Semantics instance created in PrescanAndSemaAction - Move fatal semantic error reporting to its own method, FrontendActions#reportFatalSemanticErrors - Port most tests using `-fdebug-dump-symbols` and `-fdebug-dump-parse-tree` to the new driver if built, otherwise default to f18 Differential Revision: https://reviews.llvm.org/D96716
10 lines
384 B
Fortran
10 lines
384 B
Fortran
! RUN: %flang_fc1 -fsyntax-only -fdebug-dump-symbols %s 2>&1 | FileCheck %s
|
|
! CHECK: init:[INTEGER(4)::1065353216_4,1073741824_4,1077936128_4,1082130432_4]
|
|
! Verify that the closure of EQUIVALENCE'd symbols with any DATA
|
|
! initialization produces a combined initializer.
|
|
real :: a(2), b(2), c(2)
|
|
equivalence(a(2),b(1)),(b(2),c(1))
|
|
data a(1)/1./,b(1)/2./,c/3.,4./
|
|
common /block/ a
|
|
end
|