Daniel Dunbar | 0ebd932 | 2009-10-15 20:02:44 +0000 | [diff] [blame] | 1 | // Test forced PTH for CXX support. |
| 2 | |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 3 | // RUN: clang -x c++-header %s -### 2> %t.log |
| 4 | // RUN: FileCheck -check-prefix EMIT -input-file %t.log %s |
Daniel Dunbar | 0ebd932 | 2009-10-15 20:02:44 +0000 | [diff] [blame] | 5 | |
| 6 | // EMIT: "{{.*}}/clang-cc{{.*}}" {{.*}} "-emit-pth" "{{.*}}.cpp.gch" "-x" "c++-header" "{{.*}}.cpp" |
| 7 | |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 8 | // RUN: touch %t.h.gch |
| 9 | // RUN: clang -E -include %t.h %s -### 2> %t.log |
Daniel Dunbar | 0ebd932 | 2009-10-15 20:02:44 +0000 | [diff] [blame] | 10 | // RUN: FileCheck -check-prefix USE -input-file %t.log %s |
| 11 | |
| 12 | // USE: "{{.*}}/clang-cc{{.*}}" {{.*}}"-include-pth" "{{.*}}.h.gch" {{.*}}"-x" "c++" "{{.*}}.cpp" |