Daniel Dunbar | 049853d | 2009-03-20 19:38:56 +0000 | [diff] [blame] | 1 | // Test transparent PTH support. |
| 2 | |
Douglas Gregor | 4b04596 | 2009-04-28 22:43:20 +0000 | [diff] [blame] | 3 | // 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 Dunbar | 049853d | 2009-03-20 19:38:56 +0000 | [diff] [blame] | 5 | |
| 6 | // RUN: touch %t.h.pth && |
Douglas Gregor | 4b04596 | 2009-04-28 22:43:20 +0000 | [diff] [blame] | 7 | // RUN: clang -ccc-pch-is-pth -E -include %t.h %s -### 2> %t.log && |
Daniel Dunbar | d7d5f02 | 2009-03-24 02:24:46 +0000 | [diff] [blame] | 8 | // RUN: grep '".*/clang-cc" .*"-include-pth" ".*\.h\.pth" .*"-x" "c" ".*pth\.c"' %t.log |