Daniel Dunbar | 6019672 | 2009-03-20 19:38:56 +0000 | [diff] [blame] | 1 | // Test transparent PTH support. |
| 2 | |
Douglas Gregor | c1547eb | 2009-04-28 22:43:20 +0000 | [diff] [blame] | 3 | // RUN: clang -ccc-pch-is-pth -x c-header %s -o %t.h.pth -### 2> %t.log && |
John Thompson | 271f1f0 | 2009-10-13 18:51:26 +0000 | [diff] [blame] | 4 | // RUN: FileCheck -check-prefix CHECK1 -input-file %t.log %s && |
| 5 | |
| 6 | // CHECK1: "{{.*}}/clang-cc{{.*}}" {{.*}} "-o" "{{.*}}.h.pth" "-x" "c-header" "{{.*}}pth.c" |
Daniel Dunbar | 6019672 | 2009-03-20 19:38:56 +0000 | [diff] [blame] | 7 | |
| 8 | // RUN: touch %t.h.pth && |
Douglas Gregor | c1547eb | 2009-04-28 22:43:20 +0000 | [diff] [blame] | 9 | // RUN: clang -ccc-pch-is-pth -E -include %t.h %s -### 2> %t.log && |
John Thompson | 271f1f0 | 2009-10-13 18:51:26 +0000 | [diff] [blame] | 10 | // RUN: FileCheck -check-prefix CHECK2 -input-file %t.log %s |
| 11 | |
| 12 | // CHECK2: "{{.*}}/clang-cc{{.*}}" {{.*}}"-include-pth" "{{.*}}.h.pth" {{.*}}"-x" "c" "{{.*}}pth.c" |