[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / Driver / cxx20-fdirectives-only.cpp
blob96dc4fdaa07ac3cc801be7da4071964de8d99438
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
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
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"
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"