|
5 | 5 | !--------------------------
|
6 | 6 | ! FLANG DRIVER (flang-new)
|
7 | 7 | !--------------------------
|
8 |
| -! TODO: Add support for `flang-new -` |
9 |
| -! Currently `bin/flang-new -E -` defaults to `-x c` and e.g. F90 is not allowed |
10 |
| -! in `-x <input-type>` (see `clang::driver::types::canTypeBeUserSpecified` in |
11 |
| -! Types.cpp) |
| 8 | +! Input type is implicit |
| 9 | +! RUN: cat %s | flang-new -E - | FileCheck %s --check-prefix=PP-NOT-DEFINED |
| 10 | +! RUN: cat %s | flang-new -DNEW -E - | FileCheck %s --check-prefix=PP-DEFINED |
| 11 | + |
| 12 | +! Input type is explicit |
| 13 | +! RUN: cat %s | flang-new -E -x f95-cpp-input - | FileCheck %s --check-prefix=PP-NOT-DEFINED |
| 14 | +! RUN: cat %s | flang-new -DNEW -E -x f95-cpp-input - | FileCheck %s --check-prefix=PP-DEFINED |
12 | 15 |
|
13 | 16 | !---------------------------------------
|
14 | 17 | ! FLANG FRONTEND DRIVER (flang-new -fc1)
|
15 | 18 | !---------------------------------------
|
16 |
| -! Test `-E` - for the corresponding frontend actions the driver relies on the prescanner API to handle file I/O |
| 19 | +! Test `-E`: for the corresponding frontend actions the driver relies on the prescanner API to handle file I/O |
17 | 20 | ! RUN: cat %s | flang-new -fc1 -E | FileCheck %s --check-prefix=PP-NOT-DEFINED
|
18 | 21 | ! RUN: cat %s | flang-new -fc1 -DNEW -E | FileCheck %s --check-prefix=PP-DEFINED
|
19 | 22 |
|
20 |
| -! Test `-test-io` - for the corresponding frontend action (`InputOutputTestAction`) the driver handles the file I/O on its own |
| 23 | +! Test `-test-io`: for the corresponding frontend action (`InputOutputTestAction`) the driver handles the file I/O on its own |
21 | 24 | ! the corresponding action (`PrintPreprocessedAction`)
|
22 | 25 | ! RUN: cat %s | flang-new -fc1 -test-io | FileCheck %s --check-prefix=IO --match-full-lines
|
23 | 26 | ! RUN: cat %s | flang-new -fc1 -DNEW -test-io | FileCheck %s --check-prefix=IO --match-full-lines
|
|
0 commit comments