From: Rafael Espindola Date: Fri, 10 Apr 2015 18:18:17 +0000 (+0000) Subject: Testcase for the previous commit. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=78999de49c1acdc7f435dfd36acb97c2b203fde7;p=clang 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 --- 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!