blob: c3877064a0e3315fcf139209265b3cede064d7df [file] [log] [blame]
Daniel Dunbar049853d2009-03-20 19:38:56 +00001// Test transparent PTH support.
2
3// RUN: clang-driver -x c-header %s -o %t.h.pch -### &> %t.log &&
4// RUN: grep '".*/clang" .* "-o" ".*\.h\.pch" "-x" "c-header" ".*pth\.c"' %t.log &&
5
6// RUN: touch %t.h.pth &&
7// RUN: clang-driver -E -include %t.h %s -### &> %t.log &&
8// RUN: grep '".*/clang" .*"-include-pth" ".*\.h\.pth" .*"-x" "c" ".*pth\.c"' %t.log