]> granicus.if.org Git - clang/commitdiff
Testcase for the previous commit.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 10 Apr 2015 18:18:17 +0000 (18:18 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 10 Apr 2015 18:18:17 +0000 (18:18 +0000)
Sorry, fogot to "git add" the previous time.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@234621 91177308-0d34-0410-b5e6-96231b3b80d8

test/PCH/emit-pth.c [new file with mode: 0644]

diff --git a/test/PCH/emit-pth.c b/test/PCH/emit-pth.c
new file mode 100644 (file)
index 0000000..7f863cf
--- /dev/null
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -triple i386-unknown-unknown -emit-pth -o %t1 %s
+// RUN: %clang_cc1 -triple i386-unknown-unknown -emit-pth -o - %s > %t2
+// RUN: cmp %t1 %t2
+// RUN: not %clang_cc1 -triple i386-unknown-unknown -emit-pth -o - %s 2>&1 | \
+// RUN: FileCheck %s
+
+// CHECK: PTH requires a seekable file for output!