xref: /llvm-project/flang/test/Driver/debug-parsing-log.f90 (revision d5d420bb3bcc2eea926fb70fc3e6818c32e1eecc)
1! RUN: %flang_fc1 -fdebug-dump-parsing-log %s  2>&1 | FileCheck %s
2
3! Below are just few lines extracted from the dump. The actual output is much _much_ bigger.
4
5! CHECK: {{.*[/\\]}}debug-parsing-log.f90:25:1: IMPLICIT statement
6! CHECK-NEXT:  END PROGRAM
7! CHECK-NEXT:  ^
8! CHECK-NEXT:  fail 3
9! CHECK-NEXT: {{.*[/\\]}}debug-parsing-log.f90:25:1: error: expected 'IMPLICIT NONE'
10! CHECK-NEXT:   END PROGRAM
11! CHECK-NEXT:   ^
12! CHECK-NEXT: {{.*[/\\]}}debug-parsing-log.f90:25:1: in the context: IMPLICIT statement
13! CHECK-NEXT:   END PROGRAM
14! CHECK-NEXT:   ^
15! CHECK-NEXT: {{.*[/\\]}}debug-parsing-log.f90:25:1: in the context: implicit part
16! CHECK-NEXT:   END PROGRAM
17! CHECK-NEXT:   ^
18! CHECK-NEXT: {{.*[/\\]}}debug-parsing-log.f90:25:1: in the context: specification part
19! CHECK-NEXT:   END PROGRAM
20! CHECK-NEXT:   ^
21! CHECK-NEXT: {{.*[/\\]}}debug-parsing-log.f90:25:1: in the context: main program
22! CHECK-NEXT:   END PROGRAM
23! CHECK-NEXT:   ^
24
25END PROGRAM
26