1 // Test -fdirectives-only cases.
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
7 // Check that we automatically append -fdirectives-only for header-unit
9 // RUN: %clang -### -std=c++20 -E -fmodule-header=user foo.hh 2>&1 | \
10 // RUN: FileCheck -check-prefix=CHECK-HU %s
13 // CHECK-NON-HU-SAME: "-fdirectives-only"
14 // CHECK-NON-HU-SAME: "-o" "-"
15 // CHECK-NON-HU-SAME: "-x" "c++-header" "foo.hh"
18 // CHECK-HU-SAME: "-fdirectives-only"
19 // CHECK-HU-SAME: "-o" "-"
20 // CHECK-HU-SAME: "-x" "c++-user-header" "foo.hh"