From 54bc0bbf83900993d0ce5eff65c0dc5902f5923b Mon Sep 17 00:00:00 2001 From: Alp Toker <alp@nuanti.com> Date: Thu, 28 Nov 2013 01:22:29 +0000 Subject: [PATCH] Ensure that the output BOM test check is run The first command's output was only reaching one of the two checks previously. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195904 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Frontend/rewrite-includes-bom.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/Frontend/rewrite-includes-bom.c b/test/Frontend/rewrite-includes-bom.c index 6ab520cc7de..bf3283cc6f4 100644 --- a/test/Frontend/rewrite-includes-bom.c +++ b/test/Frontend/rewrite-includes-bom.c @@ -1,5 +1,7 @@ // RUN: grep $'^\xEF\xBB\xBF' %S/Inputs/rewrite-includes-bom.h -// RUN: %clang_cc1 -E -frewrite-includes -I %S/Inputs %s -o - | %clang_cc1 -fsyntax-only -verify -x c - | not grep $'\xEF\xBB\xBF' +// RUN: %clang_cc1 -E -frewrite-includes -I %S/Inputs %s -o %t.c +// RUN: not grep $'\xEF\xBB\xBF' %t.c +// RUN: %clang_cc1 -fsyntax-only -verify %t.c // expected-no-diagnostics // REQUIRES: shell -- GitLab