2009-10-23 10:22:18 -04:00
|
|
|
// Test forced PTH for CXX support.
|
|
|
|
|
|
2010-01-01 05:34:51 -05:00
|
|
|
// RUN: %clang -x c++-header %s -### 2> %t.log
|
2009-11-18 09:59:57 -05:00
|
|
|
// RUN: FileCheck -check-prefix EMIT -input-file %t.log %s
|
2009-10-23 10:22:18 -04:00
|
|
|
|
2009-12-15 13:49:47 -05:00
|
|
|
// EMIT: "{{.*}}/clang{{.*}}" {{.*}} "-emit-pth" "{{.*}}.cpp.gch" "-x" "c++-header" "{{.*}}.cpp"
|
2009-10-23 10:22:18 -04:00
|
|
|
|
2009-11-18 09:59:57 -05:00
|
|
|
// RUN: touch %t.h.gch
|
2010-01-01 05:34:51 -05:00
|
|
|
// RUN: %clang -E -include %t.h %s -### 2> %t.log
|
2009-10-23 10:22:18 -04:00
|
|
|
// RUN: FileCheck -check-prefix USE -input-file %t.log %s
|
|
|
|
|
|
2009-12-15 13:49:47 -05:00
|
|
|
// USE: "{{.*}}/clang{{.*}}" {{.*}}"-include-pth" "{{.*}}.h.gch" {{.*}}"-x" "c++" "{{.*}}.cpp"
|