| 1 |
// Test -fdirectives-only cases. |
| 2 |
|
| 3 |
// We can manullay specify fdirectives-only, for any pre-processor job. |
| 4 |
// RUN: %clang -### -std=c++20 -E -fdirectives-only foo.hh 2>&1 | \ |
| 5 |
// RUN: FileCheck -check-prefix=CHECK-NON-HU %s |
| 6 |
|
| 7 |
// Check that we automatically append -fdirectives-only for header-unit |
| 8 |
// preprocessor jobs. |
| 9 |
// RUN: %clang -### -std=c++20 -E -fmodule-header=user foo.hh 2>&1 | \ |
| 10 |
// RUN: FileCheck -check-prefix=CHECK-HU %s |
| 11 |
|
| 12 |
// CHECK-NON-HU: "-E" |
| 13 |
// CHECK-NON-HU-SAME: "-fdirectives-only" |
| 14 |
// CHECK-NON-HU-SAME: "-o" "-" |
| 15 |
// CHECK-NON-HU-SAME: "-x" "c++-header" "foo.hh" |
| 16 |
|
| 17 |
// CHECK-HU: "-E" |
| 18 |
// CHECK-HU-SAME: "-fdirectives-only" |
| 19 |
// CHECK-HU-SAME: "-o" "-" |
| 20 |
// CHECK-HU-SAME: "-x" "c++-user-header" "foo.hh" |