[cfe-commits] r38785 - in /cfe/cfe/trunk/test/Preprocessor: comment_save.c comment_save_macro.c
sabre at cs.uiuc.edu
sabre at cs.uiuc.edu
Wed Jul 11 09:24:36 PDT 2007
Author: sabre
Date: Wed Jul 11 11:24:36 2007
New Revision: 38785
URL: http://llvm.org/viewvc/llvm-project?rev=38785&view=rev
Log:
Testcases for comment saving modes, -C and -CC.
Added:
cfe/cfe/trunk/test/Preprocessor/comment_save.c (with props)
cfe/cfe/trunk/test/Preprocessor/comment_save_macro.c (with props)
Added: cfe/cfe/trunk/test/Preprocessor/comment_save.c
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/test/Preprocessor/comment_save.c?rev=38785&view=auto
==============================================================================
--- cfe/cfe/trunk/test/Preprocessor/comment_save.c (added)
+++ cfe/cfe/trunk/test/Preprocessor/comment_save.c Wed Jul 11 11:24:36 2007
@@ -0,0 +1,7 @@
+// RUN: clang -E -C %s | grep '^// foo$' &&
+// RUN: clang -E -C %s | grep -F '^/* bar */$'
+
+// foo
+/* bar */
+
+
Propchange: cfe/cfe/trunk/test/Preprocessor/comment_save.c
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cfe/cfe/trunk/test/Preprocessor/comment_save.c
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: cfe/cfe/trunk/test/Preprocessor/comment_save_macro.c
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/test/Preprocessor/comment_save_macro.c?rev=38785&view=auto
==============================================================================
--- cfe/cfe/trunk/test/Preprocessor/comment_save_macro.c (added)
+++ cfe/cfe/trunk/test/Preprocessor/comment_save_macro.c Wed Jul 11 11:24:36 2007
@@ -0,0 +1,8 @@
+// RUN: clang -E -C %s | grep '^boo bork bar // zot$' &&
+// RUN: clang -E -CC %s | grep -F '^boo bork /* blah*/ bar // zot$' &&
+// RUN: clang -E %s | grep '^boo bork bar$'
+
+
+#define FOO bork // blah
+boo FOO bar // zot
+
Propchange: cfe/cfe/trunk/test/Preprocessor/comment_save_macro.c
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cfe/cfe/trunk/test/Preprocessor/comment_save_macro.c
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
More information about the cfe-commits
mailing list