Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[flang] Make interactive behaviour more obvious
When flang is invoked with no files it waits for input on stdin. Make it print a message saying this to prevent the user being surprised. Differential Revision: https://reviews.llvm.org/D84855
- Loading branch information
1 parent
57bd64f
commit dd5ea56
Showing
3 changed files
with
15 additions
and
0 deletions.
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,3 @@ | ||
program hello | ||
write (*,*), "hello world" | ||
end program hello |
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,10 @@ | ||
! RUN: %f18 < %S/Inputs/hello.f90 | FileCheck %s | ||
|
||
|
||
! CHECK: Enter Fortran source | ||
! CHECK: Use EOF character (^D) to end file | ||
|
||
! CHECK: Parse tree comprises {{.*}} objects and occupies {{.*}} total bytes | ||
! CHECK: PROGRAM hello | ||
! CHECK: WRITE (*, *) "hello world" | ||
! CHECK: END PROGRAM hello |
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