From: Dmitri Gribenko Date: Sat, 26 Jan 2013 17:11:39 +0000 (+0000) Subject: Migrate tests to -verify X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a8a908b81dbe0efec6aed536eb1f704a9c5b5599;p=clang Migrate tests to -verify git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173582 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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