blob: 8e8b2dda32ba8146dfa70199ab4fa33b0d27f4c5 [file] [log] [blame]
Daniel Dunbar049853d2009-03-20 19:38:56 +00001// Test transparent PTH support.
2
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00003// RUN: clang -ccc-pch-is-pth -x c-header %s -o %t.h.pth -### 2> %t.log
4// RUN: FileCheck -check-prefix CHECK1 -input-file %t.log %s
John Thompson5e517c82009-10-13 18:51:26 +00005
6// CHECK1: "{{.*}}/clang-cc{{.*}}" {{.*}} "-o" "{{.*}}.h.pth" "-x" "c-header" "{{.*}}pth.c"
Daniel Dunbar049853d2009-03-20 19:38:56 +00007
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00008// RUN: touch %t.h.pth
9// RUN: clang -ccc-pch-is-pth -E -include %t.h %s -### 2> %t.log
John Thompson5e517c82009-10-13 18:51:26 +000010// RUN: FileCheck -check-prefix CHECK2 -input-file %t.log %s
11
12// CHECK2: "{{.*}}/clang-cc{{.*}}" {{.*}}"-include-pth" "{{.*}}.h.pth" {{.*}}"-x" "c" "{{.*}}pth.c"