diff options
-rw-r--r-- | clang/test/Lexer/block_cmt_end.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/clang/test/Lexer/block_cmt_end.c b/clang/test/Lexer/block_cmt_end.c new file mode 100644 index 00000000000..4517c9b636e --- /dev/null +++ b/clang/test/Lexer/block_cmt_end.c @@ -0,0 +1,24 @@ +/* +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 +*/ + +/* abc + +ends with normal escaped newline: +*\ +/ + +bar + +/* xyz + + +ends with a trigraph escaped newline: +*??/ +/ + +foo + |