aboutsummaryrefslogtreecommitdiff
path: root/test/Preprocessor/macro_paste_bad.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-19 18:54:13 +0000
committerChris Lattner <sabre@nondot.org>2009-04-19 18:54:13 +0000
commitb5e9cb4631877f60824447e1aff4fd2fa17f6d2c (patch)
tree2ccb74d1c638095ea88ba5185260da20cd6357d8 /test/Preprocessor/macro_paste_bad.c
parent8fde5978a63bcce5c294a93b2a5dd424d7628971 (diff)
convert to -verify mode.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69532 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor/macro_paste_bad.c')
-rw-r--r--test/Preprocessor/macro_paste_bad.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Preprocessor/macro_paste_bad.c b/test/Preprocessor/macro_paste_bad.c
index 1ccfdec368..29aafdb111 100644
--- a/test/Preprocessor/macro_paste_bad.c
+++ b/test/Preprocessor/macro_paste_bad.c
@@ -1,5 +1,5 @@
-// RUN: clang-cc -Eonly %s 2>&1 | grep error
+// RUN: clang-cc -Eonly -verify %s
// pasting ""x"" and ""+"" does not give a valid preprocessing token
-#define XYZ x ## +
+#define XYZ x ## + // expected-error {{pasting formed 'x', an invalid preprocessing token}}
XYZ