[RISCV][FMV] Support target_clones (#85786)
[llvm-project.git] / clang / test / Driver / pch-deps.c
blob2c140e50144eadd0f0fad5809639c8f98a334fd7
1 // RUN: %clang -x c-header %s -o %t.pch -MMD -MT dependencies -MF %t.d -### 2> %t
2 // RUN: FileCheck %s -input-file=%t
3 // CHECK: -emit-pch
4 // CHECK: -dependency-file
5 // CHECK: -module-file-deps
7 // RUN: %clang -c %s -o %t -MMD -MT dependencies -MF %t.d -### 2> %t
8 // RUN: FileCheck %s -check-prefix=CHECK-NOPCH -input-file=%t
9 // CHECK-NOPCH: -dependency-file
10 // CHECK-NOPCH-NOT: -module-file-deps
12 // RUN: %clang -x c-header %s -o %t.pch -MMD -MT dependencies -MF %t.d \
13 // RUN: -fno-module-file-deps -### 2> %t
14 // RUN: FileCheck %s -check-prefix=CHECK-EXPLICIT -input-file=%t
15 // CHECK-EXPLICIT: -dependency-file
16 // CHECK-EXPLICIT-NOT: -module-file-deps
18 // RUN: %clang -x c++ %s -o %t.o -MMD -MT dependencies -MF %t.d -fmodule-file-deps -### 2> %t
19 // RUN: FileCheck %s -check-prefix=CHECK-EXPLICIT-NOPCH -input-file=%t
20 // CHECK-EXPLICIT-NOPCH: -dependency-file
21 // CHECK-EXPLICIT-NOPCH: -module-file-deps