]> granicus.if.org Git - clang/commitdiff
ccc: Test case for transparent PTH support.
authorDaniel Dunbar <daniel@zuster.org>
Fri, 13 Feb 2009 00:49:50 +0000 (00:49 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 13 Feb 2009 00:49:50 +0000 (00:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64420 91177308-0d34-0410-b5e6-96231b3b80d8

tools/ccc/test/ccc/pth.c [new file with mode: 0644]

diff --git a/tools/ccc/test/ccc/pth.c b/tools/ccc/test/ccc/pth.c
new file mode 100644 (file)
index 0000000..1a0dd50
--- /dev/null
@@ -0,0 +1,5 @@
+// RUN: cp %s %t &&
+// RUN: xcc -x c-header %t -o %t.pth &&
+// RUN: xcc -### -S -include %t -x c /dev/null &> %t.log &&
+// RUN: grep '"-token-cache" ".*/pth.c.out.tmp.pth"' %t.log
+// RUN: true