blob: e349691d423b7c70372faac03e3b5985ad2e285b [file] [log] [blame]
Daniel Dunbar0ebd9322009-10-15 20:02:44 +00001// Test forced PTH for CXX support.
2
Daniel Dunbar80737ad2009-12-15 22:01:24 +00003// RUN: %clang -x c++-header %s -### 2> %t.log
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00004// RUN: FileCheck -check-prefix EMIT -input-file %t.log %s
Daniel Dunbar0ebd9322009-10-15 20:02:44 +00005
Daniel Dunbar8ff5b282009-12-11 23:00:49 +00006// EMIT: "{{.*}}/clang{{.*}}" {{.*}} "-emit-pth" "{{.*}}.cpp.gch" "-x" "c++-header" "{{.*}}.cpp"
Daniel Dunbar0ebd9322009-10-15 20:02:44 +00007
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00008// RUN: touch %t.h.gch
Daniel Dunbar80737ad2009-12-15 22:01:24 +00009// RUN: %clang -E -include %t.h %s -### 2> %t.log
Daniel Dunbar0ebd9322009-10-15 20:02:44 +000010// RUN: FileCheck -check-prefix USE -input-file %t.log %s
11
Daniel Dunbar8ff5b282009-12-11 23:00:49 +000012// USE: "{{.*}}/clang{{.*}}" {{.*}}"-include-pth" "{{.*}}.h.gch" {{.*}}"-x" "c++" "{{.*}}.cpp"