[WebAssembly] Fix asan issue from https://reviews.llvm.org/D121349
[llvm-project.git] / flang / test / Driver / dump-parse-tree-no-sema.f90
blob7179b1d4174e5f2adae56f47c5eff393df4755b0
1 !----------
2 ! RUN lines
3 !----------
4 ! RUN: %flang_fc1 -fdebug-dump-parse-tree %s 2>&1 | FileCheck %s --check-prefix=SEMA_ON
5 ! RUN: %flang_fc1 -fdebug-dump-parse-tree-no-sema %s 2>&1 | FileCheck %s --check-prefix=SEMA_OFF
7 !-----------------
8 ! EXPECTEED OUTPUT
9 !-----------------
10 ! SEMA_ON: | | | NamedConstant -> Name = 'i'
11 ! SEMA_ON-NEXT: | | | Constant -> Expr = '1_4'
12 ! SEMA_ON-NEXT: | | | | LiteralConstant -> IntLiteralConstant = '1'
14 ! SEMA_OFF: | | | NamedConstant -> Name = 'i'
15 ! SEMA_OFF-NEXT: | | | Constant -> Expr -> LiteralConstant -> IntLiteralConstant = '1'
17 !-------
18 ! INPUT
19 !-------
20 parameter(i=1)
21 integer :: j
22 end program