llvm-project/flang/test/Flang-Driver
Andrzej Warzynski ba000628bd [flang][driver] Fix reading from stdin when using `-test-io`
This patch adds logic in the InputOutputTestAction frontend action for
reading input from stdin. Without this patch the following fails:
```
    flang-new -fc1 -test-io -
```

The implementation of `InputOutputTestAction` is cleaned-up and a test
for reading from stdin is added.

Note that there's a difference between `-test-io` and e.g. `-E` in terms
of file I/O. The frontend action for the former handles all file I/O on
it's own. Conversely, the action corresponding to -E relies on the
prescanner API to handle this.

Currently we can't test reading from stdin for `flang-new -`. In this
case `libclangDriver` assumes `-x -c`. This in turn leads to `flang-new
-cc1`, which is not supported.
2021-02-04 16:51:59 +00:00
..
Inputs [flang][driver] Add forced form flags and -ffixed-line-length 2021-02-04 12:24:15 +00:00
code-gen.f90 [flang][driver] Add support for `-c` and `-emit-obj` 2021-01-07 10:52:38 +00:00
driver-error-cc1.c
driver-error-cc1.cpp
driver-help-hidden.f90 [flang][driver] Add support for `-J/-module-dir` 2021-02-04 16:31:40 +00:00
driver-help.f90 [flang][driver] Add support for `-J/-module-dir` 2021-02-04 16:31:40 +00:00
driver-version.f90
fixed-free-detection.f90 [flang][driver] Add support for fixed form detection 2021-01-19 12:58:01 +00:00
fixed-free-flag.f90 [flang][driver] Add forced form flags and -ffixed-line-length 2021-02-04 12:24:15 +00:00
fixed-line-length.f90 [flang][driver] Add forced form flags and -ffixed-line-length 2021-02-04 12:24:15 +00:00
include-header.f90 [flang] Search for #include "file" in right directory (take 2) 2021-01-27 15:41:29 -08:00
include-module.f90 [flang][driver] Add support for `-J/-module-dir` 2021-02-04 16:31:40 +00:00
input-from-stdin.f90 [flang][driver] Fix reading from stdin when using `-test-io` 2021-02-04 16:51:59 +00:00
macro-def-undef.f90 [flang][driver] Rename driver tests (nfc) 2021-01-07 14:05:48 +00:00
macro-multiline.f90 [flang][driver] Rename driver tests (nfc) 2021-01-07 14:05:48 +00:00
missing-input.f90 [flang][driver] Disallow non-existent input files in the frontend driver 2021-02-02 10:03:45 +00:00
parse-error.f95 [flang] Add -fsyntax-only to f18; retain -fparse-only synonym 2021-02-03 09:01:39 -08:00
phases.f90 [flang][driver] Add support for `-c` and `-emit-obj` 2021-01-07 10:52:38 +00:00
predefined-macros-compiler-version.f90 [flang][driver] Add standard macro predefinitions for compiler version 2021-01-19 13:22:59 +00:00
scanning-error.f95 [flang][driver] Update error messages (nfc) 2021-01-06 10:41:27 +00:00
syntax-only.f90 [flang] Add -fsyntax-only to f18; retain -fparse-only synonym 2021-02-03 09:01:39 -08:00
write-module.f90 [flang][driver] Add support for `-J/-module-dir` 2021-02-04 16:31:40 +00:00