aboutsummaryrefslogtreecommitdiff
path: root/test/PCH/emit-pth.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/PCH/emit-pth.c')
-rw-r--r--test/PCH/emit-pth.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/PCH/emit-pth.c b/test/PCH/emit-pth.c
new file mode 100644
index 000000000000..2c0fba7f0932
--- /dev/null
+++ b/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: %clang_cc1 -triple i386-unknown-unknown -emit-pth -o - %s | \
+// RUN: FileCheck %s
+
+// CHECK: cfe-pth