Update the preprocessor regression tests to use the new driver if the new driver is built (FLANG_BUILD_NEW_DRIVER=On), otherwise the tests will still run using f18. Summary of changes: - Introduce %flang to the regression tests, which points to the new driver if it is built or otherwise points to f18 - Update all tests in flang/test/Preprocessing/ to use %flang Differential Revision: https://reviews.llvm.org/D94805
19 lines
513 B
Fortran
19 lines
513 B
Fortran
! RUN: %flang -I%S -E %s 2>&1 | FileCheck %s
|
|
! CHECK-NOT: :3:
|
|
#include <empty.h> ! comment
|
|
! CHECK-NOT: :5:
|
|
#include <empty.h> /* comment */
|
|
! CHECK-NOT: :7:
|
|
#include <empty.h> !comment
|
|
! CHECK: :9:20: #include: extra stuff ignored after file name
|
|
#include <empty.h> comment
|
|
! CHECK-NOT: :11:
|
|
#include "empty.h" ! comment
|
|
! CHECK-NOT: :13:
|
|
#include "empty.h" /* comment */
|
|
! CHECK-NOT: :15:
|
|
#include "empty.h" !comment
|
|
! CHECK: :17:20: #include: extra stuff ignored after file name
|
|
#include "empty.h" comment
|
|
end
|