[cfe-commits] r69412 - /cfe/trunk/test/Preprocessor/if_warning.c

Chris Lattner sabre at nondot.org
Fri Apr 17 18:33:55 PDT 2009


Author: lattner
Date: Fri Apr 17 20:33:54 2009
New Revision: 69412

URL: http://llvm.org/viewvc/llvm-project?rev=69412&view=rev
Log:
convert test to -verify style.

Modified:
    cfe/trunk/test/Preprocessor/if_warning.c

Modified: cfe/trunk/test/Preprocessor/if_warning.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Preprocessor/if_warning.c?rev=69412&r1=69411&r2=69412&view=diff

==============================================================================
--- cfe/trunk/test/Preprocessor/if_warning.c (original)
+++ cfe/trunk/test/Preprocessor/if_warning.c Fri Apr 17 20:33:54 2009
@@ -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





More information about the cfe-commits mailing list