brintos

brintos / llvm-project-archived public Read only

0
0
Text · 908 B · 2c140e5 Raw
22 lines · c
1// RUN: %clang -x c-header %s -o %t.pch -MMD -MT dependencies -MF %t.d -### 2> %t2// RUN: FileCheck %s -input-file=%t3// CHECK: -emit-pch4// CHECK: -dependency-file5// CHECK: -module-file-deps6 7// RUN: %clang -c %s -o %t -MMD -MT dependencies -MF %t.d -### 2> %t8// RUN: FileCheck %s -check-prefix=CHECK-NOPCH -input-file=%t9// CHECK-NOPCH: -dependency-file10// CHECK-NOPCH-NOT: -module-file-deps11 12// RUN: %clang -x c-header %s -o %t.pch -MMD -MT dependencies -MF %t.d \13// RUN:     -fno-module-file-deps -### 2> %t14// RUN: FileCheck %s -check-prefix=CHECK-EXPLICIT -input-file=%t15// CHECK-EXPLICIT: -dependency-file16// CHECK-EXPLICIT-NOT: -module-file-deps17 18// RUN: %clang -x c++ %s -o %t.o -MMD -MT dependencies -MF %t.d -fmodule-file-deps -### 2> %t19// RUN: FileCheck %s -check-prefix=CHECK-EXPLICIT-NOPCH -input-file=%t20// CHECK-EXPLICIT-NOPCH: -dependency-file21// CHECK-EXPLICIT-NOPCH: -module-file-deps22