From 78999de49c1acdc7f435dfd36acb97c2b203fde7 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 10 Apr 2015 18:18:17 +0000 Subject: [PATCH] Testcase for the previous commit. 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 | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/PCH/emit-pth.c diff --git a/test/PCH/emit-pth.c b/test/PCH/emit-pth.c new file mode 100644 index 0000000000..7f863cf1d4 --- /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: not %clang_cc1 -triple i386-unknown-unknown -emit-pth -o - %s 2>&1 | \ +// RUN: FileCheck %s + +// CHECK: PTH requires a seekable file for output! -- 2.50.1