blob: 508696ade885999536cfb2d656258e6b20fb037b [file] [log] [blame]
Daniel Dunbar0ebd9322009-10-15 20:02:44 +00001// Test forced PTH for CXX support.
2
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00003// RUN: clang -x c++-header %s -### 2> %t.log
4// RUN: FileCheck -check-prefix EMIT -input-file %t.log %s
Daniel Dunbar0ebd9322009-10-15 20:02:44 +00005
6// EMIT: "{{.*}}/clang-cc{{.*}}" {{.*}} "-emit-pth" "{{.*}}.cpp.gch" "-x" "c++-header" "{{.*}}.cpp"
7
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00008// RUN: touch %t.h.gch
9// RUN: clang -E -include %t.h %s -### 2> %t.log
Daniel Dunbar0ebd9322009-10-15 20:02:44 +000010// RUN: FileCheck -check-prefix USE -input-file %t.log %s
11
12// USE: "{{.*}}/clang-cc{{.*}}" {{.*}}"-include-pth" "{{.*}}.h.gch" {{.*}}"-x" "c++" "{{.*}}.cpp"