summaryrefslogtreecommitdiff
path: root/test/Preprocessor/macro_paste_c_block_comment.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Preprocessor/macro_paste_c_block_comment.c')
-rw-r--r--test/Preprocessor/macro_paste_c_block_comment.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Preprocessor/macro_paste_c_block_comment.c b/test/Preprocessor/macro_paste_c_block_comment.c
new file mode 100644
index 0000000000..9299514c51
--- /dev/null
+++ b/test/Preprocessor/macro_paste_c_block_comment.c
@@ -0,0 +1,7 @@
+// RUN: clang %s -Eonly 2>&1 | grep error &&
+// RUN: clang %s -Eonly 2>&1 | not grep unterminated &&
+// RUN: clang %s -Eonly 2>&1 | not grep scratch
+
+#define COMM / ## *
+COMM
+