`%flang-new` was introduced in the early days of the new driver to make
a clear distinction between the tests for the current and the new
driver. We have since introduced `%flang` (compiler driver) and
`%flang_fc1` (frontend driver) as the long term solution. This has allowed
us to share tests between `flang-new` and `f18`. This patch replaces
all uses of `%flang-new` with `%flang` and `%flang_fc1`.
Some tests are reformatted so that all tests look uniform and are easier
to follow. Where possible, `! REQUIRES: new-flang-driver` is deleted so
that more tests can be shared with `f18`. To facilitate this,
`f{no-}implicit-none` are introduced in `f18` with semantics identical
to `flang-new`.
Two tests are deleted rather than updated:
* flang/test/Frontend/print-preprocess-C-file.f90
* flang/test/Frontend/print-preprocessed-file.f90
Instead, there is plenty of preprocessor tests in
flang/test/Preprocessing/.
Differential Revision: https://reviews.llvm.org/D100174
22 lines
866 B
Fortran
22 lines
866 B
Fortran
! Although code-generation is not yet available, we do have frontend actions
|
|
! that correspond to `-c` and `-emit-obj`. For now these actions are just a
|
|
! placeholder and running them leads to a driver error. This test makes sure
|
|
! that these actions are indeed run (rather than `-c` or `-emit-obj` being
|
|
! rejected earlier).
|
|
! TODO: Replace this file with a proper test once code-generation is available.
|
|
|
|
! REQUIRES: new-flang-driver
|
|
|
|
!-----------
|
|
! RUN LINES
|
|
!-----------
|
|
! RUN: not %flang %s 2>&1 | FileCheck %s --check-prefix=ERROR
|
|
! RUN: not %flang -c %s 2>&1 | FileCheck %s --check-prefix=ERROR
|
|
! RUN: not %flang -emit-obj %s 2>&1 | FileCheck %s --check-prefix=ERROR
|
|
! RUN: not %flang -fc1 -emit-obj %s 2>&1 | FileCheck %s --check-prefix=ERROR
|
|
|
|
!-----------------------
|
|
! EXPECTED OUTPUT
|
|
!-----------------------
|
|
! ERROR: code-generation is not available yet
|