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 f07c887..acb6d5e 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