diff options
author | Andrzej Warzynski <andrzej.warzynski@arm.com> | 2021-04-12 12:32:57 +0000 |
---|---|---|
committer | Andrzej Warzynski <andrzej.warzynski@arm.com> | 2021-04-13 10:03:07 +0000 |
commit | 4217e6bf95f56d7c11684403687d20a7ef79ba09 (patch) | |
tree | d156c7fe46d1cfd0fac791ed57a3f0baf039a95a /flang | |
parent | [AArch64][SVE] Fix dup/dupq intrinsics for C++. (diff) | |
download | llvm-project-4217e6bf95f56d7c11684403687d20a7ef79ba09.tar.gz llvm-project-4217e6bf95f56d7c11684403687d20a7ef79ba09.tar.bz2 llvm-project-4217e6bf95f56d7c11684403687d20a7ef79ba09.zip |
[flang] Fix a test (use %s instead of $s)
With the typo ($S instead of %s), the driver was expecting
input from stdin. In such cases, it prints:
```
Enter Fortran source
Use EOF character (^D) to end file
```
This was piped to FileCheck. Together with the available `CHECK-NOT`
statement, this was sufficient for the test to pass (incorrectly).
This patch makes sure that the provided input file is used instead of
stdin.
Differential Revision: https://reviews.llvm.org/D100301
Diffstat (limited to 'flang')
-rw-r--r-- | flang/test/Semantics/call17.f90 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/flang/test/Semantics/call17.f90 b/flang/test/Semantics/call17.f90 index ace626037dd8..d392756e1415 100644 --- a/flang/test/Semantics/call17.f90 +++ b/flang/test/Semantics/call17.f90 @@ -1,4 +1,4 @@ -! RUN: %f18 -fsyntax-only $s 2>&1 | FileCheck %s +! RUN: %f18 -fsyntax-only %s 2>&1 | FileCheck %s --allow-empty ! Regression test: don't emit a bogus error about an invalid specification expression ! in the declaration of a binding |