Home | History | Annotate | Download | only in Driver
      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
      6 
      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
     11 
     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
     17 
     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
     22