blob: 9c47c5599376a2fef41f95fcaebb7abbd5948e9a [file] [log] [blame]
Daniel Dunbar049853d2009-03-20 19:38:56 +00001// Test transparent PTH support.
2
Daniel Dunbar80737ad2009-12-15 22:01:24 +00003// RUN: %clang -ccc-pch-is-pth -x c-header %s -o %t.h.pth -### 2> %t.log
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00004// RUN: FileCheck -check-prefix CHECK1 -input-file %t.log %s
John Thompson5e517c82009-10-13 18:51:26 +00005
Daniel Dunbar8ff5b282009-12-11 23:00:49 +00006// CHECK1: "{{.*}}/clang{{.*}}" "-cc1" {{.*}} "-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
Daniel Dunbar80737ad2009-12-15 22:01:24 +00009// 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
Daniel Dunbar8ff5b282009-12-11 23:00:49 +000012// CHECK2: "{{.*}}/clang{{.*}}" "-cc1" {{.*}}"-include-pth" "{{.*}}.h.pth" {{.*}}"-x" "c" "{{.*}}pth.c"