summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-12-14 02:16:13 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-12-14 02:16:13 +0000
commit206dba0538a39e271bd676adace5a1c183ffabe2 (patch)
tree96f5afcc6f556e189571c1d9d1bb78ecc2c4e466
parentab5830e51b2ac2749a8475ad66ca70ce8f1b3fa6 (diff)
downloadbcm5719-llvm-206dba0538a39e271bd676adace5a1c183ffabe2.tar.gz
bcm5719-llvm-206dba0538a39e271bd676adace5a1c183ffabe2.zip
Switch test over to using -verify instead of using grep. PR11552.
llvm-svn: 146544
-rw-r--r--clang/test/Preprocessor/macro_paste_c_block_comment.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/test/Preprocessor/macro_paste_c_block_comment.c b/clang/test/Preprocessor/macro_paste_c_block_comment.c
index 3441f273d46..c690a4c7c9f 100644
--- a/clang/test/Preprocessor/macro_paste_c_block_comment.c
+++ b/clang/test/Preprocessor/macro_paste_c_block_comment.c
@@ -1,7 +1,5 @@
-// RUN: %clang_cc1 %s -Eonly 2>&1 | grep error
-// RUN: %clang_cc1 %s -Eonly 2>&1 | not grep unterminated
-// RUN: %clang_cc1 %s -Eonly 2>&1 | not grep scratch
+// RUN: %clang_cc1 %s -Eonly -verify
#define COMM / ## *
-COMM
+COMM // expected-error {{pasting formed '/*', an invalid preprocessing token}}
OpenPOWER on IntegriCloud