summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/test/Preprocessor/macro_paste_bad.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Preprocessor/macro_paste_bad.c b/clang/test/Preprocessor/macro_paste_bad.c
index 1ccfdec368c..29aafdb111e 100644
--- a/clang/test/Preprocessor/macro_paste_bad.c
+++ b/clang/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
OpenPOWER on IntegriCloud