llvm-project/flang/test/Driver
Emil Kieri 577827cbbf [flang][driver] Make --version and -version consistent with clang
This patch makes -version valid, and --version invalid, for
flang-new -fc1. The invocation
  flang-new --version
remains valid. This behaviour is consistent with clang
(and with clang -cc1 and clang -cc1as).

Previously, flang-new -fc1 accepted --version (as per Options.td), but
the frontend driver acutally checks for -version. As a result,
  flang-new -fc1 --version
triggered no action, emitted no message, and stalled waiting for
standard input.

Fixes #51438

Reviewed By: PeteSteinfeld, awarzynski

Differential Revision: https://reviews.llvm.org/D122542
2022-03-28 22:53:17 +02:00
..
Inputs [flang][driver] Add -fintrinsic-modules-path option 2021-03-23 12:28:19 -04:00
code-gen-aarch64.f90 [flang][driver] Add support for -S and implement -c/-emit-obj 2022-03-09 15:48:09 +00:00
code-gen-x86.f90 [flang][driver] Add support for -S and implement -c/-emit-obj 2022-03-09 15:48:09 +00:00
cpp-nocpp-command-line-macro.f90 [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
cpp-nocpp-predefined-macro.F90 [flang][driver] Add support for `-cpp/-nocpp` 2021-04-07 13:01:52 +00:00
debug-measure-parse-tree.f90 [flang] Make the frontend driver error out when requesting multiple actions 2021-12-17 10:05:28 +00:00
debug-parsing-log.f90 [flang][windows] Run regression tests under Windows. NFCI. 2021-06-10 05:13:44 -05:00
debug-provenance.f90 [flang][windows] Run regression tests under Windows. NFCI. 2021-06-10 05:13:44 -05:00
driver-error-cc1.c [flang][nfc] Remove `flang-new-driver` from LIT 2021-08-13 08:17:40 +00:00
driver-error-cc1.cpp [flang][nfc] Remove `flang-new-driver` from LIT 2021-08-13 08:17:40 +00:00
driver-help-hidden.f90 [flang][driver] Add support for `-mllvm` 2022-03-16 10:41:04 +00:00
driver-help.f90 [flang][driver] Make --version and -version consistent with clang 2022-03-28 22:53:17 +02:00
driver-version.f90 [flang][driver] Make --version and -version consistent with clang 2022-03-28 22:53:17 +02:00
dump-all-bad.f90 [flang][driver] Add actions that execute despite semantic errors 2021-10-11 11:52:05 +00:00
dump-all.f90 [flang][nfc] Remove `flang-new-driver` from LIT 2021-08-13 08:17:40 +00:00
dump-parse-tree-no-sema.f90 [flang][driver] Add debug options not requiring semantic checks 2021-04-08 09:44:19 +00:00
dump-pft.f90 [flang][driver] Add support for `-debug-dump-pft` 2022-03-08 19:21:58 +00:00
emit-asm-aarch64.f90 [flang][driver] Add support for -S and implement -c/-emit-obj 2022-03-09 15:48:09 +00:00
emit-asm-x86.f90 [flang][driver] Add support for -S and implement -c/-emit-obj 2022-03-09 15:48:09 +00:00
emit-llvm.f90 [flang][driver] Add support for `-emit-llvm` 2022-02-17 12:13:03 +00:00
emit-mlir.f90 [flang][driver] Add support for `-emit-mlir` 2022-02-09 08:35:48 +00:00
escaped-backslash.f90 [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
fdefault.f90 [flang][driver] Merge test/Driver and test/Flang-Driver directories 2021-03-10 11:38:13 +00:00
fixed-free-detection.f90 [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
fixed-free-flag.f90 [flang] Distinguish usage and portability warning messages 2022-03-08 17:24:52 -08:00
fixed-line-length.f90 [flang][nfc] Remove `flang-new-driver` from LIT 2021-08-13 08:17:40 +00:00
flarge-sizes.f90 [flang][nfc] Rename some test files 2021-04-08 10:09:00 +00:00
frontend-forwarding.f90 [flang][nfc] Move a test 2022-03-17 16:47:54 +00:00
get-definition.f90 [flang] Make the frontend driver error out when requesting multiple actions 2021-12-17 10:05:28 +00:00
implicit-none.f90 [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +00:00
include-header.f90 [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
init-only.f90 [flang][nfc] Remove `flang-new-driver` from LIT 2021-08-13 08:17:40 +00:00
input-from-stdin.f90 [flang][nfc] Remove `flang-new-driver` from LIT 2021-08-13 08:17:40 +00:00
intrinsic-module-path.f90 [flang][nfc] Rename some test files 2021-04-08 10:09:00 +00:00
macro-def-undef.F90 [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
macro-multiline.F90 [flang][nfc] Remove `flang-new-driver` from LIT 2021-08-13 08:17:40 +00:00
missing-arg.f90 [flang][nfc] Remove `flang-new-driver` from LIT 2021-08-13 08:17:40 +00:00
missing-input.f90 [clang] Make the driver not diagnose errors on nonexistent linker inputs 2021-09-13 08:57:38 -04:00
mllvm.f90 [flang][nfc] Move a test 2022-03-17 16:47:54 +00:00
module-suffix.f90 [flang][driver] Add support for `-module-suffix` 2021-06-04 13:58:04 +01:00
multiple-actions-error.f95 [flang] Make the frontend driver error out when requesting multiple actions 2021-12-17 10:05:28 +00:00
output-paths.f90 [flang] Refine output file generation 2021-08-21 15:18:48 +00:00
parse-error.f95 [flang] Lift -Werror checks into local functions 2021-08-06 12:43:19 -06:00
phases.f90 [flang][nfc] Remove `flang-new-driver` from LIT 2021-08-13 08:17:40 +00:00
plugin-invalid-name.f90 [flang][driver] Add print function name Plugin example 2021-08-19 08:25:34 +00:00
predefined-macros-compiler-version.F90 [flang][driver] Add support for `-cpp/-nocpp` 2021-04-07 13:01:52 +00:00
print-effective-triple.f90 [flang][driver] Add support for `--target`/`--triple` 2022-02-25 09:38:10 +00:00
print-target-triple.f90 [flang][driver] Add support for `--target`/`--triple` 2022-02-25 09:38:10 +00:00
scanning-error.f95 [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +00:00
std2018-wrong.f90 [flang][nfc] Remove `flang-new-driver` from LIT 2021-08-13 08:17:40 +00:00
std2018.f90 [flang][driver] Add options for -std=f2018 2021-03-25 13:03:16 -04:00
syntax-only.f90 [flang][driver] Add support for -S and implement -c/-emit-obj 2022-03-09 15:48:09 +00:00
target.f90 [flang][driver] Add support for `--target`/`--triple` 2022-02-25 09:38:10 +00:00
unparse-use-analyzed.f95 [flang][driver] Add `-fno-analyzed-objects-for-unparse` 2021-06-25 13:28:12 +01:00
use-module-error.f90 [flang][nfc] Remove `flang-new-driver` from LIT 2021-08-13 08:17:40 +00:00
use-module.f90 [flang][driver] Merge test/Driver and test/Flang-Driver directories 2021-03-10 11:38:13 +00:00
werror-parse.f [flang] Make the frontend driver error out when requesting multiple actions 2021-12-17 10:05:28 +00:00
werror-scan.f [flang] Make the frontend driver error out when requesting multiple actions 2021-12-17 10:05:28 +00:00
werror-sema.f90 [flang] Make the frontend driver error out when requesting multiple actions 2021-12-17 10:05:28 +00:00
werror-wrong.f90 [flang][nfc] Remove `flang-new-driver` from LIT 2021-08-13 08:17:40 +00:00
write-module.f90 [flang][driver] Merge test/Driver and test/Flang-Driver directories 2021-03-10 11:38:13 +00:00