Files
clang-p2996/flang/test/Driver/driver-error-cc1.cpp
Andrzej Warzynski 808a5a2534 [flang][driver] Remove %flang-new from the LIT configuration
`%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
2021-04-13 10:55:01 +00:00

15 lines
381 B
C++

// C++ files are currently not supported (i.e. `flang -cc1`). Make sure that the
// driver reports this as expected.
// REQUIRES: new-flang-driver
//-----------
// RUN LINES
//-----------
// RUN: not %flang %s 2>&1 | FileCheck %s
//-----------------------
// EXPECTED OUTPUT
//-----------------------
// CHECK: error: unknown integrated tool '-cc1'. Valid tools include '-fc1'.