From 07c24b8abfb3519d4504b3c23dcf9049800796c4 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Thu, 1 May 2014 22:45:16 +0000 Subject: [PATCH] Use %clang_cc1 in rewrite-includes-messages.c test and drop REQUIRES: shell This test passes on Windows with lit's shell interpreter. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207810 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Frontend/rewrite-includes-messages.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/Frontend/rewrite-includes-messages.c b/test/Frontend/rewrite-includes-messages.c index b1cd9bbf15..517977a84c 100644 --- a/test/Frontend/rewrite-includes-messages.c +++ b/test/Frontend/rewrite-includes-messages.c @@ -1,8 +1,7 @@ -// RUN: %clang -E -frewrite-includes %s -I%S/Inputs/ | %clang -Wall -Wunused-macros -x c -c - 2>&1 | tee %t.1 -// RUN: %clang -I%S/Inputs/ -Wall -Wunused-macros -c %s 2>&1 | tee %t.2 -// RUN: diff %t.1 %t.2 +// RUN: %clang_cc1 -E -frewrite-includes %s -I%S/Inputs/ | %clang_cc1 -Wall -fsyntax-only -Wunused-macros -x c - 2>&1 > %t.1 +// RUN: %clang_cc1 -I%S/Inputs/ -Wall -Wunused-macros %s 2>&1 > %t.2 +// RUN: diff %t.1 %t.2 -u // expected-no-diagnostics -// REQUIRES: shell #include "rewrite-includes-messages.h" #define UNUSED_MACRO -- 2.40.0