From ae7cbf1a0fa652217f2fb5ed2c3a173f55b49958 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 18 Apr 2009 01:33:54 +0000 Subject: [PATCH] convert test to -verify style. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69412 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Preprocessor/if_warning.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 -- 2.50.1