-
Notifications
You must be signed in to change notification settings - Fork 11.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[flang][test] Share all driver test dirs between
f18
and flang-new
Originally, when we added the new driver, we created dedicated test directories for `flang-new`. This way we separated the tests for the `throwaway` and the new driver. As we are increasing test coverage and starting to share tests between the two drivers, it makes sense to share all directories and instead rely on: ``` ! REQUIRES: new-flang-driver ``` to mark tests as exclusively for the new driver. Differential Revision: https://reviews.llvm.org/D97207
- Loading branch information
1 parent
f6c2984
commit 5e54bef
Showing
2 changed files
with
7 additions
and
12 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 |
---|---|---|
@@ -1,17 +1,15 @@ | ||
! Test that the driver correctly reports diagnostics from the prescanner. The contents of the include file are irrelevant here. | ||
|
||
! Test with -E (i.e. PrintPreprocessedAction, stops after prescanning) | ||
! RUN: %f18 -E -I %S/Inputs/ %s 2>&1 | FileCheck %s | ||
! RUN: %flang-new -E -I %S/Inputs/ %s 2>&1 | FileCheck %s | ||
! RUN: %flang-new -fc1 -E -I %S/Inputs/ %s 2>&1 | FileCheck %s | ||
! RUN: %flang -E -I %S/Inputs/ %s 2>&1 | FileCheck %s | ||
! RUN: %flang_fc1 -E -I %S/Inputs/ %s 2>&1 | FileCheck %s | ||
|
||
! Test with -fsyntax-only (i.e. ParseSyntaxOnlyAction, stops after semantic checks) | ||
! RUN: %f18 -fsyntax-only -I %S/Inputs/ %s 2>&1 | FileCheck %s | ||
! RUN: %flang-new -fsyntax-only -I %S/Inputs/ %s 2>&1 | FileCheck %s | ||
! RUN: %flang-new -fc1 -fsyntax-only -I %S/Inputs/ %s 2>&1 | FileCheck %s | ||
! RUN: %flang -fsyntax-only -I %S/Inputs/ %s 2>&1 | FileCheck %s | ||
! RUN: %flang_fc1 -fsyntax-only -I %S/Inputs/ %s 2>&1 | FileCheck %s | ||
|
||
! CHECK: prescanner-diag.f90:14:20: #include: extra stuff ignored after file name | ||
! CHECK: prescanner-diag.f90:12:20: #include: extra stuff ignored after file name | ||
#include <empty.h> comment | ||
! CHECK: prescanner-diag.f90:16:20: #include: extra stuff ignored after file name | ||
! CHECK: prescanner-diag.f90:14:20: #include: extra stuff ignored after file name | ||
#include "empty.h" comment | ||
end |
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