207
|
1 ! Ensure argument -Werror work as expected, this file checks for the functional correctness for
|
|
2 ! actions that extend the PrescanAction
|
|
3 ! Multiple RUN lines are added to make sure that the behavior is consistent across multiple actions.
|
|
4
|
|
5 ! RUN: not %flang_fc1 -fsyntax-only -E -Werror %s 2>&1 | FileCheck %s --check-prefix=WITH
|
|
6 ! RUN: not %flang_fc1 -fsyntax-only -fdebug-dump-parsing-log -Werror %s 2>&1 | FileCheck %s --check-prefix=WITH
|
|
7 ! RUN: not %flang_fc1 -fsyntax-only -fdebug-dump-provenance -Werror %s 2>&1 | FileCheck %s --check-prefix=WITH
|
|
8 ! RUN: not %flang_fc1 -fsyntax-only -fdebug-measure-parse-tree -Werror %s 2>&1 | FileCheck %s --check-prefix=WITH
|
|
9 ! RUN: %flang_fc1 -fsyntax-only -E %s 2>&1 | FileCheck %s --allow-empty --check-prefix=WITHOUT
|
|
10 ! RUN: %flang_fc1 -fsyntax-only -fdebug-dump-parsing-log %s 2>&1 | FileCheck %s --check-prefix=WITHOUT
|
|
11 ! RUN: %flang_fc1 -fsyntax-only -fdebug-dump-provenance %s 2>&1 | FileCheck %s --check-prefix=WITHOUT
|
|
12 ! RUN: %flang_fc1 -fsyntax-only -fdebug-measure-parse-tree %s 2>&1 | FileCheck %s --check-prefix=WITHOUT
|
|
13
|
|
14 !-----------------------------------------
|
|
15 ! EXPECTED OUTPUT WITH -Werror
|
|
16 !-----------------------------------------
|
|
17 ! WITH: Could not scan
|
|
18
|
|
19 !-----------------------------------------
|
|
20 ! EXPECTED OUTPUT WITHOUT -Werror
|
|
21 !-----------------------------------------
|
|
22 ! WITHOUT-NOT: Could not scan
|
|
23
|
|
24 1 continue
|
|
25 end
|