From a8a908b81dbe0efec6aed536eb1f704a9c5b5599 Mon Sep 17 00:00:00 2001 From: Dmitri Gribenko Date: Sat, 26 Jan 2013 17:11:39 +0000 Subject: [PATCH] Migrate tests to -verify git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173582 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Lexer/badstring_in_if0.c | 3 ++- test/Lexer/unknown-char.c | 4 +++- test/Preprocessor/disabled-cond-diags.c | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/test/Lexer/badstring_in_if0.c b/test/Lexer/badstring_in_if0.c index 18ebc1efbf..f7cd9d7737 100644 --- a/test/Lexer/badstring_in_if0.c +++ b/test/Lexer/badstring_in_if0.c @@ -1,4 +1,5 @@ -// RUN: %clang_cc1 -E %s 2>&1 | grep -v '^#' | not grep warning +// RUN: %clang_cc1 -E -verify %s +// expected-no-diagnostics #if 0 " diff --git a/test/Lexer/unknown-char.c b/test/Lexer/unknown-char.c index 57f7904998..8d316b3dca 100644 --- a/test/Lexer/unknown-char.c +++ b/test/Lexer/unknown-char.c @@ -1,2 +1,4 @@ -// RUN: %clang_cc1 -E %s 2>&1 | grep -v '^#' | not grep error +// RUN: %clang_cc1 -E -verify %s +// expected-no-diagnostics + ` ` ` ` diff --git a/test/Preprocessor/disabled-cond-diags.c b/test/Preprocessor/disabled-cond-diags.c index 40c9f44d92..0237b5debd 100644 --- a/test/Preprocessor/disabled-cond-diags.c +++ b/test/Preprocessor/disabled-cond-diags.c @@ -1,4 +1,5 @@ -// RUN: %clang_cc1 -E %s 2>&1 | grep -v '^#' | not grep "warning\|error" +// RUN: %clang_cc1 -E -verify %s +// expected-no-diagnostics #if 0 -- 2.50.1