blob: a06a25753869dd2d708274ec171c8b11299a656c [file] [log] [blame]
Daniel Dunbar0ebd9322009-10-15 20:02:44 +00001// Test forced PTH for CXX support.
2
3// RUN: clang -x c++-header %s -### 2> %t.log &&
4// RUN: FileCheck -check-prefix EMIT -input-file %t.log %s &&
5
6// EMIT: "{{.*}}/clang-cc{{.*}}" {{.*}} "-emit-pth" "{{.*}}.cpp.gch" "-x" "c++-header" "{{.*}}.cpp"
7
8// RUN: touch %t.h.gch &&
9// RUN: clang -E -include %t.h %s -### 2> %t.log &&
10// RUN: FileCheck -check-prefix USE -input-file %t.log %s
11
12// USE: "{{.*}}/clang-cc{{.*}}" {{.*}}"-include-pth" "{{.*}}.h.gch" {{.*}}"-x" "c++" "{{.*}}.cpp"