[cfe-commits] r39687 - in /cfe/cfe/trunk/test/Lexer: block_cmt_end.c escape_newline.c unknown-char.c
bwendlin at cs.uiuc.edu
bwendlin at cs.uiuc.edu
Wed Jul 11 09:47:10 PDT 2007
Author: bwendlin
Date: Wed Jul 11 11:47:09 2007
New Revision: 39687
URL: http://llvm.org/viewvc/llvm-project?rev=39687&view=rev
Log:
Submitted by: Bill Wendling
Reviewed by: Chris Lattner
- Reverted some checks because they're checking the preprocessor output.
Modified:
cfe/cfe/trunk/test/Lexer/block_cmt_end.c
cfe/cfe/trunk/test/Lexer/escape_newline.c
cfe/cfe/trunk/test/Lexer/unknown-char.c
Modified: cfe/cfe/trunk/test/Lexer/block_cmt_end.c
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/test/Lexer/block_cmt_end.c?rev=39687&r1=39686&r2=39687&view=diff
==============================================================================
--- cfe/cfe/trunk/test/Lexer/block_cmt_end.c (original)
+++ cfe/cfe/trunk/test/Lexer/block_cmt_end.c Wed Jul 11 11:47:09 2007
@@ -1,4 +1,8 @@
/*
+ RUN: clang -E %s | grep bar &&
+ RUN: clang -E %s | grep foo &&
+ RUN: clang -E %s | not grep abc &&
+ RUN: clang -E %s | not grep xyz &&
RUN: clang -parse-ast-check %s
*/
Modified: cfe/cfe/trunk/test/Lexer/escape_newline.c
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/test/Lexer/escape_newline.c?rev=39687&r1=39686&r2=39687&view=diff
==============================================================================
--- cfe/cfe/trunk/test/Lexer/escape_newline.c (original)
+++ cfe/cfe/trunk/test/Lexer/escape_newline.c Wed Jul 11 11:47:09 2007
@@ -1,3 +1,4 @@
+// RUN: clang -E %s | grep -- ' ->' &&
// RUN: clang -parse-ast-check %s
// This is an ugly way to spell a -> token.
Modified: cfe/cfe/trunk/test/Lexer/unknown-char.c
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/test/Lexer/unknown-char.c?rev=39687&r1=39686&r2=39687&view=diff
==============================================================================
--- cfe/cfe/trunk/test/Lexer/unknown-char.c (original)
+++ cfe/cfe/trunk/test/Lexer/unknown-char.c Wed Jul 11 11:47:09 2007
@@ -1,2 +1,2 @@
-// RUN: clang -parse-ast-check %s
-` ` ` ` // expected-error {{expected identifier or '('}}
+// RUN: clang -E %s 2>&1 | not grep error
+ ` ` ` `
More information about the cfe-commits
mailing list