aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-18 01:33:54 +0000
committerChris Lattner <sabre@nondot.org>2009-04-18 01:33:54 +0000
commitae7cbf1a0fa652217f2fb5ed2c3a173f55b49958 (patch)
tree6688307d7763c909deff6cdf0ce29c0547bca67b
parent0a4f1b9550b81b1391d79c0dd5a416951f4df9a6 (diff)
convert test to -verify style.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69412 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Preprocessor/if_warning.c7
1 files 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