]> granicus.if.org Git - clang/commitdiff
convert test to -verify style.
authorChris Lattner <sabre@nondot.org>
Sat, 18 Apr 2009 01:33:54 +0000 (01:33 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 18 Apr 2009 01:33:54 +0000 (01:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69412 91177308-0d34-0410-b5e6-96231b3b80d8

test/Preprocessor/if_warning.c

index f07c88707e76abb20bd7fca6c15e68cda4886fc7..acb6d5ea422de92e2eba40c01f79ce7d8c7220d2 100644 (file)
@@ -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