From: Chris Lattner Date: Sat, 18 Apr 2009 01:33:54 +0000 (+0000) Subject: convert test to -verify style. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ae7cbf1a0fa652217f2fb5ed2c3a173f55b49958;p=clang convert test to -verify style. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69412 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Preprocessor/if_warning.c b/test/Preprocessor/if_warning.c index f07c88707e..acb6d5ea42 100644 --- a/test/Preprocessor/if_warning.c +++ b/test/Preprocessor/if_warning.c @@ -1,7 +1,8 @@ -// RUN: clang-cc %s -E -Wundef -Werror 2>&1 | grep error | count 1 && -// RUN: clang-cc %s -E -Werror 2>&1 | not grep error +// RUN: clang-cc %s -Eonly -Werror=undef -verify -#if foo // Should generate an warning +extern int x; + +#if foo // expected-error {{'foo' is not defined, evaluates to 0}} #endif #ifdef foo