[cfe-commits] r146544 - /cfe/trunk/test/Preprocessor/macro_paste_c_block_comment.c
Eli Friedman
eli.friedman at gmail.com
Tue Dec 13 18:16:14 PST 2011
Author: efriedma
Date: Tue Dec 13 20:16:13 2011
New Revision: 146544
URL: http://llvm.org/viewvc/llvm-project?rev=146544&view=rev
Log:
Switch test over to using -verify instead of using grep. PR11552.
Modified:
cfe/trunk/test/Preprocessor/macro_paste_c_block_comment.c
Modified: cfe/trunk/test/Preprocessor/macro_paste_c_block_comment.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Preprocessor/macro_paste_c_block_comment.c?rev=146544&r1=146543&r2=146544&view=diff
==============================================================================
--- cfe/trunk/test/Preprocessor/macro_paste_c_block_comment.c (original)
+++ cfe/trunk/test/Preprocessor/macro_paste_c_block_comment.c Tue Dec 13 20:16:13 2011
@@ -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}}
More information about the cfe-commits
mailing list