From: Chris Lattner Date: Sat, 18 Apr 2009 18:45:36 +0000 (+0000) Subject: make sure to verify that the "non pch" runs worked. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b3dcc744b3a9898c5ac8770cfb2bae346c4bf0b5;p=clang make sure to verify that the "non pch" runs worked. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69457 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/PCH/asm.c b/test/PCH/asm.c index 135abc1796..b4201ebde8 100644 --- a/test/PCH/asm.c +++ b/test/PCH/asm.c @@ -1,5 +1,5 @@ // Test this without pch. -// RUN: clang-cc -include %S/asm.h -fsyntax-only -verify %s +// RUN: clang-cc -include %S/asm.h -fsyntax-only -verify %s && // Test with pch. // RUN: clang-cc -emit-pch -o %t %S/asm.h && diff --git a/test/PCH/attrs.c b/test/PCH/attrs.c index 57b92c035e..1ffb467f63 100644 --- a/test/PCH/attrs.c +++ b/test/PCH/attrs.c @@ -1,5 +1,5 @@ // Test this without pch. -// RUN: clang-cc -include %S/attrs.h -fsyntax-only -verify %s +// RUN: clang-cc -include %S/attrs.h -fsyntax-only -verify %s && // Test with pch. // RUN: clang-cc -emit-pch -o %t %S/attrs.h && diff --git a/test/PCH/blocks.c b/test/PCH/blocks.c index 27286b1961..f3efc8ac4b 100644 --- a/test/PCH/blocks.c +++ b/test/PCH/blocks.c @@ -1,5 +1,5 @@ // Test this without pch. -// RUN: clang-cc -fblocks -include %S/blocks.h -fsyntax-only -emit-llvm -o - %s +// RUN: clang-cc -fblocks -include %S/blocks.h -fsyntax-only -emit-llvm -o - %s && // Test with pch. // RUN: clang-cc -emit-pch -fblocks -o %t %S/blocks.h && diff --git a/test/PCH/enum.c b/test/PCH/enum.c index f3e8a09d93..45b0491c6f 100644 --- a/test/PCH/enum.c +++ b/test/PCH/enum.c @@ -1,5 +1,5 @@ // Test this without pch. -// RUN: clang-cc -include %S/enum.h -fsyntax-only -verify %s +// RUN: clang-cc -include %S/enum.h -fsyntax-only -verify %s && // Test with pch. // RUN: clang-cc -emit-pch -o %t %S/enum.h && diff --git a/test/PCH/exprs.c b/test/PCH/exprs.c index ced6d178b4..c8e6d1dc30 100644 --- a/test/PCH/exprs.c +++ b/test/PCH/exprs.c @@ -1,5 +1,5 @@ // Test this without pch. -// RUN: clang-cc -fblocks -include %S/exprs.h -fsyntax-only -verify %s +// RUN: clang-cc -fblocks -include %S/exprs.h -fsyntax-only -verify %s && // Test with pch. // RUN: clang-cc -emit-pch -fblocks -o %t %S/exprs.h && diff --git a/test/PCH/functions.c b/test/PCH/functions.c index 9042796924..6d3c5a0f7b 100644 --- a/test/PCH/functions.c +++ b/test/PCH/functions.c @@ -1,5 +1,5 @@ // Test this without pch. -// RUN: clang-cc -include %S/functions.h -fsyntax-only -verify %s +// RUN: clang-cc -include %S/functions.h -fsyntax-only -verify %s && // Test with pch. // RUN: clang-cc -emit-pch -o %t %S/functions.h && diff --git a/test/PCH/line-directive.c b/test/PCH/line-directive.c index ed54842aa7..53edb3c06b 100644 --- a/test/PCH/line-directive.c +++ b/test/PCH/line-directive.c @@ -1,5 +1,5 @@ // Test this without pch. -// RUN: clang-cc -include %S/line-directive.h -fsyntax-only %s 2>&1|grep "25:5" +// RUN: clang-cc -include %S/line-directive.h -fsyntax-only %s 2>&1|grep "25:5" && // Test with pch. // RUN: clang-cc -emit-pch -o %t %S/line-directive.h && diff --git a/test/PCH/multiple_decls.c b/test/PCH/multiple_decls.c index f73567ed01..4b2fc6247c 100644 --- a/test/PCH/multiple_decls.c +++ b/test/PCH/multiple_decls.c @@ -1,5 +1,5 @@ // Test this without pch. -// RUN: clang-cc -include %S/multiple_decls.h -fsyntax-only -ast-print -o - %s +// RUN: clang-cc -include %S/multiple_decls.h -fsyntax-only -ast-print -o - %s && // Test with pch. // RUN: clang-cc -emit-pch -o %t %S/multiple_decls.h && diff --git a/test/PCH/stmts.c b/test/PCH/stmts.c index 9979d10d33..0d906f291f 100644 --- a/test/PCH/stmts.c +++ b/test/PCH/stmts.c @@ -1,5 +1,5 @@ // Test this without pch. -// RUN: clang-cc -include %S/stmts.h -fsyntax-only -emit-llvm -o - %s +// RUN: clang-cc -include %S/stmts.h -fsyntax-only -emit-llvm -o - %s && // Test with pch. // RUN: clang-cc -emit-pch -o %t %S/stmts.h && diff --git a/test/PCH/struct.c b/test/PCH/struct.c index 5ea9fe2757..027b303920 100644 --- a/test/PCH/struct.c +++ b/test/PCH/struct.c @@ -1,5 +1,5 @@ // Test this without pch. -// RUN: clang-cc -include %S/struct.h -fsyntax-only -verify %s +// RUN: clang-cc -include %S/struct.h -fsyntax-only -verify %s && // Test with pch. // RUN: clang-cc -emit-pch -o %t %S/struct.h && diff --git a/test/PCH/types.c b/test/PCH/types.c index d3ed8475fd..6463eb1d51 100644 --- a/test/PCH/types.c +++ b/test/PCH/types.c @@ -1,5 +1,5 @@ // Test this without pch. -// RUN: clang-cc -fblocks -include %S/types.h -fsyntax-only -verify %s +// RUN: clang-cc -fblocks -include %S/types.h -fsyntax-only -verify %s && // Test with pch. // RUN: clang-cc -emit-pch -fblocks -o %t %S/types.h && diff --git a/test/PCH/va_arg.c b/test/PCH/va_arg.c index 91c6b77a33..de0bd5f73d 100644 --- a/test/PCH/va_arg.c +++ b/test/PCH/va_arg.c @@ -1,5 +1,5 @@ // Test this without pch. -// RUN: clang-cc -triple=x86_64-unknown-freebsd7.0 -include %S/va_arg.h %s -emit-llvm -o - +// RUN: clang-cc -triple=x86_64-unknown-freebsd7.0 -include %S/va_arg.h %s -emit-llvm -o - && // Test with pch. // RUN: clang-cc -triple=x86_64-unknown-freebsd7.0 -o %t %S/va_arg.h && diff --git a/test/PCH/variables.c b/test/PCH/variables.c index afd45461d0..18eae60f7b 100644 --- a/test/PCH/variables.c +++ b/test/PCH/variables.c @@ -1,5 +1,5 @@ // Test this without pch. -// RUN: clang-cc -include %S/variables.h -fsyntax-only -verify %s +// RUN: clang-cc -include %S/variables.h -fsyntax-only -verify %s && // Test with pch. // RUN: clang-cc -emit-pch -o %t %S/variables.h &&