[PATCH] D84855: [flang] Make interactive behaviour more obvious
Richard Barton via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 31 06:08:10 PDT 2020
richard.barton.arm updated this revision to Diff 282207.
richard.barton.arm added a comment.
Fix clang-format error.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D84855/new/
https://reviews.llvm.org/D84855
Files:
flang/test/Driver/Inputs/hello.f90
flang/test/Driver/no_files.f90
flang/tools/f18/f18.cpp
Index: flang/tools/f18/f18.cpp
===================================================================
--- flang/tools/f18/f18.cpp
+++ flang/tools/f18/f18.cpp
@@ -686,6 +686,8 @@
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;
}
Index: flang/test/Driver/no_files.f90
===================================================================
--- /dev/null
+++ flang/test/Driver/no_files.f90
@@ -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
Index: flang/test/Driver/Inputs/hello.f90
===================================================================
--- /dev/null
+++ flang/test/Driver/Inputs/hello.f90
@@ -0,0 +1,3 @@
+program hello
+ write (*,*), "hello world"
+end program hello
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84855.282207.patch
Type: text/x-patch
Size: 1168 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200731/a7b753b4/attachment.bin>
More information about the llvm-commits
mailing list