[cfe-commits] r131147 - /cfe/trunk/test/Lexer/block_cmt_end.c
Matt Beaumont-Gay
matthewbg at google.com
Tue May 10 13:28:29 PDT 2011
Author: matthewbg
Date: Tue May 10 15:28:29 2011
New Revision: 131147
URL: http://llvm.org/viewvc/llvm-project?rev=131147&view=rev
Log:
Change magic string "abc" to better magic string "qux".
Wait, what?
So, we run Clang (and LLVM) tests in an environment where the md5sum of the
input files becomes a component of the path. When testing the preprocessor,
the path becomes part of the output (in line directives). In this test, we
were grepping for the absence of "abc" in the output. When the stars aligned
properly, the md5sum component of the path contained "abc" and the test
failed. Oops.
Modified:
cfe/trunk/test/Lexer/block_cmt_end.c
Modified: cfe/trunk/test/Lexer/block_cmt_end.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Lexer/block_cmt_end.c?rev=131147&r1=131146&r2=131147&view=diff
==============================================================================
--- cfe/trunk/test/Lexer/block_cmt_end.c (original)
+++ cfe/trunk/test/Lexer/block_cmt_end.c Tue May 10 15:28:29 2011
@@ -1,7 +1,7 @@
/*
RUN: %clang_cc1 -E -trigraphs %s | grep bar
RUN: %clang_cc1 -E -trigraphs %s | grep foo
- RUN: %clang_cc1 -E -trigraphs %s | not grep abc
+ RUN: %clang_cc1 -E -trigraphs %s | not grep qux
RUN: %clang_cc1 -E -trigraphs %s | not grep xyz
RUN: %clang_cc1 -fsyntax-only -trigraphs -verify %s
*/
@@ -9,7 +9,7 @@
// This is a simple comment, /*/ does not end a comment, the trailing */ does.
int i = /*/ */ 1;
-/* abc
+/* qux
next comment ends with normal escaped newline:
*/
@@ -32,7 +32,3 @@
// rdar://6060752 - We should not get warnings about trigraphs in comments:
// '????'
/* ???? */
-
-
-
-
More information about the cfe-commits
mailing list