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
--- /dev/null
+program hello
+ write (*,*), "hello world"
+end program hello
--- /dev/null
+! 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
if (!anyFiles) {
driver.measureTree = true;
driver.dumpUnparse = true;
+ llvm::outs() << "Enter Fortran source\n"
+ << "Use EOF character (^D) to end file\n";
CompileFortran("-", options, driver, defaultKinds);
return exitStatus;
}