forked from OSchip/llvm-project
ba000628bd
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. |
||
---|---|---|
.. | ||
Inputs | ||
code-gen.f90 | ||
driver-error-cc1.c | ||
driver-error-cc1.cpp | ||
driver-help-hidden.f90 | ||
driver-help.f90 | ||
driver-version.f90 | ||
fixed-free-detection.f90 | ||
fixed-free-flag.f90 | ||
fixed-line-length.f90 | ||
include-header.f90 | ||
include-module.f90 | ||
input-from-stdin.f90 | ||
macro-def-undef.f90 | ||
macro-multiline.f90 | ||
missing-input.f90 | ||
parse-error.f95 | ||
phases.f90 | ||
predefined-macros-compiler-version.f90 | ||
scanning-error.f95 | ||
syntax-only.f90 | ||
write-module.f90 |