Daniel Dunbar | 049853d | 2009-03-20 19:38:56 +0000 | [diff] [blame] | 1 | // Test transparent PTH support. |
| 2 | |
Eli Friedman | 1ab10d4 | 2009-03-22 21:49:20 +0000 | [diff] [blame] | 3 | // RUN: clang-driver -x c-header %s -o %t.h.pch -### 2> %t.log && |
Daniel Dunbar | d7d5f02 | 2009-03-24 02:24:46 +0000 | [diff] [blame] | 4 | // RUN: grep '".*/clang-cc" .* "-o" ".*\.h\.pch" "-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 && |
Eli Friedman | 1ab10d4 | 2009-03-22 21:49:20 +0000 | [diff] [blame] | 7 | // RUN: clang-driver -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 |