diff options
Diffstat (limited to 'test/Driver/pth.c')
-rw-r--r-- | test/Driver/pth.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Driver/pth.c b/test/Driver/pth.c new file mode 100644 index 0000000..7480538 --- /dev/null +++ b/test/Driver/pth.c @@ -0,0 +1,8 @@ +// Test transparent PTH support. + +// RUN: clang -ccc-pch-is-pth -x c-header %s -o %t.h.pth -### 2> %t.log && +// RUN: grep '".*/clang-cc" .* "-o" ".*\.h\.pth" "-x" "c-header" ".*pth\.c"' %t.log && + +// RUN: touch %t.h.pth && +// RUN: clang -ccc-pch-is-pth -E -include %t.h %s -### 2> %t.log && +// RUN: grep '".*/clang-cc" .*"-include-pth" ".*\.h\.pth" .*"-x" "c" ".*pth\.c"' %t.log |