[WebAssembly] Fix asan issue from https://reviews.llvm.org/D121349
[llvm-project.git] / flang / test / Driver / dump-all-bad.f90
blobf29ab240936f11a94595f471c2b6b548bb91a045
1 ! Verify that -fdebug-dump-all dumps both symbols and the parse tree, even when semantic errors are present
3 !----------
4 ! RUN lines
5 !----------
6 ! RUN: not %flang_fc1 -fdebug-dump-all %s 2>&1 | FileCheck %s
8 !----------------
9 ! EXPECTED OUTPUT
10 !----------------
11 ! CHECK: error: Semantic errors in
12 ! CHECK: Flang: parse tree dump
13 ! CHECK: Flang: symbols dump
15 !-------
16 ! INPUT
17 !-------
18 program bad
19 real,pointer :: x
20 x = null() ! Error - must be pointer assignment
21 end