mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-14 03:29:57 +00:00
Testcases for comment saving modes, -C and -CC.
llvm-svn: 38785
This commit is contained in:
parent
cd028fc1f6
commit
f35d327a99
7
clang/test/Preprocessor/comment_save.c
Normal file
7
clang/test/Preprocessor/comment_save.c
Normal file
@ -0,0 +1,7 @@
|
||||
// RUN: clang -E -C %s | grep '^// foo$' &&
|
||||
// RUN: clang -E -C %s | grep -F '^/* bar */$'
|
||||
|
||||
// foo
|
||||
/* bar */
|
||||
|
||||
|
8
clang/test/Preprocessor/comment_save_macro.c
Normal file
8
clang/test/Preprocessor/comment_save_macro.c
Normal 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
|
||||
|
Loading…
Reference in New Issue
Block a user