mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-16 16:36:46 +00:00

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
15 lines
406 B
Fortran
15 lines
406 B
Fortran
!RUN: %flang_fc1 -fdebug-dump-symbols %s | FileCheck %s
|
|
|
|
program p
|
|
! CHECK: a size=4 offset=0: ObjectEntity type: LOGICAL(4)
|
|
! CHECK: b size=4 offset=4: ObjectEntity type: REAL(4)
|
|
logical :: a = .false.
|
|
real :: b = 9.73
|
|
! CHECK: a: AssocEntity type: REAL(4) expr:b
|
|
! CHECK: b: AssocEntity type: LOGICAL(4) expr:a
|
|
associate (b => a, a => b)
|
|
print*, a, b
|
|
end associate
|
|
print*, a, b
|
|
end
|