blob: 748053809a7cd52741097012e025eb3f7807c07d [file] [log] [blame]
Daniel Dunbar049853d2009-03-20 19:38:56 +00001// Test transparent PTH support.
2
Douglas Gregor4b045962009-04-28 22:43:20 +00003// RUN: clang -ccc-pch-is-pth -x c-header %s -o %t.h.pth -### 2> %t.log &&
4// RUN: grep '".*/clang-cc" .* "-o" ".*\.h\.pth" "-x" "c-header" ".*pth\.c"' %t.log &&
Daniel Dunbar049853d2009-03-20 19:38:56 +00005
6// RUN: touch %t.h.pth &&
Douglas Gregor4b045962009-04-28 22:43:20 +00007// RUN: clang -ccc-pch-is-pth -E -include %t.h %s -### 2> %t.log &&
Daniel Dunbard7d5f022009-03-24 02:24:46 +00008// RUN: grep '".*/clang-cc" .*"-include-pth" ".*\.h\.pth" .*"-x" "c" ".*pth\.c"' %t.log