Daniel Dunbar | 0ebd932 | 2009-10-15 20:02:44 +0000 | [diff] [blame] | 1 | // 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" |