freebsd-dev/test/Driver/cxx-pth.cpp

13 lines
467 B
C++
Raw Normal View History

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