Testcases for comment saving modes, -C and -CC.

llvm-svn: 38785
This commit is contained in:
Chris Lattner 2006-07-29 06:41:10 +00:00
parent cd028fc1f6
commit f35d327a99
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,7 @@
// RUN: clang -E -C %s | grep '^// foo$' &&
// RUN: clang -E -C %s | grep -F '^/* bar */$'
// foo
/* bar */

View File

@ -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