[WebAssembly] Fix asan issue from https://reviews.llvm.org/D121349
[llvm-project.git] / flang / test / Driver / debug-parsing-log.f90
blobed47684cde2fb0d47093f17b269a95ccf3f74460
1 ! RUN: %flang_fc1 -fdebug-dump-parsing-log %s 2>&1 | FileCheck %s
3 !-----------------
4 ! EXPECTED OUTPUT
5 !-----------------
6 ! Below are just few lines extracted from the dump. The actual output is much _much_ bigger.
8 ! CHECK: {{.*[/\\]}}debug-parsing-log.f90:31:1: IMPLICIT statement
9 ! CHECK-NEXT: END PROGRAM
10 ! CHECK-NEXT: ^
11 ! CHECK-NEXT: fail 3
12 ! CHECK-NEXT: {{.*[/\\]}}debug-parsing-log.f90:31:1: error: expected 'IMPLICIT NONE'
13 ! CHECK-NEXT: END PROGRAM
14 ! CHECK-NEXT: ^
15 ! CHECK-NEXT: {{.*[/\\]}}debug-parsing-log.f90:31:1: in the context: IMPLICIT statement
16 ! CHECK-NEXT: END PROGRAM
17 ! CHECK-NEXT: ^
18 ! CHECK-NEXT: {{.*[/\\]}}debug-parsing-log.f90:31:1: in the context: implicit part
19 ! CHECK-NEXT: END PROGRAM
20 ! CHECK-NEXT: ^
21 ! CHECK-NEXT: {{.*[/\\]}}debug-parsing-log.f90:31:1: in the context: specification part
22 ! CHECK-NEXT: END PROGRAM
23 ! CHECK-NEXT: ^
24 ! CHECK-NEXT: {{.*[/\\]}}debug-parsing-log.f90:31:1: in the context: main program
25 ! CHECK-NEXT: END PROGRAM
26 ! CHECK-NEXT: ^
28 !-----------------
29 ! TEST INPUT
30 !-----------------
31 END PROGRAM