blob: 4350f46e86f603522dc205be11ffd13549f7d63e [file] [log] [blame]
Daniel Dunbar049853d2009-03-20 19:38:56 +00001// Test transparent PTH support.
2
Chandler Carruth02590422012-01-24 01:55:55 +00003// RUN: %clang -no-canonical-prefixes -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
Chandler Carruth02590422012-01-24 01:55:55 +00009// RUN: %clang -no-canonical-prefixes -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"