Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[flang] Add details to --help screen on default behaviour
Add a usage string and a defaults section that clarifies: * If no input files are given, f18 reads from stdin * If no input files are given, f18 dumps the parse tree. * The default behaviour is to exec F18_FC. * The fefault F18_FC setting is 'gfortran' Adds a simple regression test which tests the top and tail of the help screen and the exit status. Depends on D84855 Differential Revision: https://reviews.llvm.org/D84856 (cherry picked from commit b068d19)
- Loading branch information
1 parent
dfc8459
commit 4ad21aa
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
! RUN: %f18 -help 2>&1 | FileCheck %s | ||
! RUN: %f18 --help 2>&1 | FileCheck %s | ||
! RUN: %f18 -? 2>&1 | FileCheck %s | ||
|
||
! CHECK: f18: LLVM Fortran compiler | ||
|
||
! CHECK: -help print this again | ||
! CHECK: Unrecognised options are passed through to the external compiler | ||
! CHECK: set by F18_FC (see defaults). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters