blob: 5c83aea54ceb7d06aeaacb79f5412d3c65d183bd [file] [log] [blame]
Daniel Dunbar60196722009-03-20 19:38:56 +00001// Test transparent PTH support.
2
Douglas Gregorc1547eb2009-04-28 22:43:20 +00003// RUN: clang -ccc-pch-is-pth -x c-header %s -o %t.h.pth -### 2> %t.log &&
John Thompson271f1f02009-10-13 18:51:26 +00004// RUN: FileCheck -check-prefix CHECK1 -input-file %t.log %s &&
5
6// CHECK1: "{{.*}}/clang-cc{{.*}}" {{.*}} "-o" "{{.*}}.h.pth" "-x" "c-header" "{{.*}}pth.c"
Daniel Dunbar60196722009-03-20 19:38:56 +00007
8// RUN: touch %t.h.pth &&
Douglas Gregorc1547eb2009-04-28 22:43:20 +00009// RUN: clang -ccc-pch-is-pth -E -include %t.h %s -### 2> %t.log &&
John Thompson271f1f02009-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"