[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
This commit is contained in:
Andrzej Warzynski 2021-04-12 12:32:57 +00:00
parent fa936b610f
commit 4217e6bf95
1 changed files with 1 additions and 1 deletions

View File

@ -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