summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/test/PCH/emit-pth.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/PCH/emit-pth.c b/clang/test/PCH/emit-pth.c
new file mode 100644
index 00000000000..7f863cf1d4f
--- /dev/null
+++ b/clang/test/PCH/emit-pth.c
@@ -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!
OpenPOWER on IntegriCloud