Daniel Dunbar | 049853d | 2009-03-20 19:38:56 +0000 | [diff] [blame] | 1 | // Test transparent PTH support. |
| 2 | |
Daniel Dunbar | 80737ad | 2009-12-15 22:01:24 +0000 | [diff] [blame] | 3 | // RUN: %clang -ccc-pch-is-pth -x c-header %s -o %t.h.pth -### 2> %t.log |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 4 | // RUN: FileCheck -check-prefix CHECK1 -input-file %t.log %s |
John Thompson | 5e517c8 | 2009-10-13 18:51:26 +0000 | [diff] [blame] | 5 | |
Daniel Dunbar | 8ff5b28 | 2009-12-11 23:00:49 +0000 | [diff] [blame] | 6 | // CHECK1: "{{.*}}/clang{{.*}}" "-cc1" {{.*}} "-o" "{{.*}}.h.pth" "-x" "c-header" "{{.*}}pth.c" |
Daniel Dunbar | 049853d | 2009-03-20 19:38:56 +0000 | [diff] [blame] | 7 | |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 8 | // RUN: touch %t.h.pth |
Daniel Dunbar | 80737ad | 2009-12-15 22:01:24 +0000 | [diff] [blame] | 9 | // RUN: %clang -ccc-pch-is-pth -E -include %t.h %s -### 2> %t.log |
John Thompson | 5e517c8 | 2009-10-13 18:51:26 +0000 | [diff] [blame] | 10 | // RUN: FileCheck -check-prefix CHECK2 -input-file %t.log %s |
| 11 | |
Daniel Dunbar | 8ff5b28 | 2009-12-11 23:00:49 +0000 | [diff] [blame] | 12 | // CHECK2: "{{.*}}/clang{{.*}}" "-cc1" {{.*}}"-include-pth" "{{.*}}.h.pth" {{.*}}"-x" "c" "{{.*}}pth.c" |