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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Preprocessor/macro_paste_c_block_comment.c b/test/Preprocessor/macro_paste_c_block_comment.c
index c690a4c7c9f5..c558be58ee7b 100644
--- a/test/Preprocessor/macro_paste_c_block_comment.c
+++ b/test/Preprocessor/macro_paste_c_block_comment.c
@@ -1,5 +1,9 @@
// RUN: %clang_cc1 %s -Eonly -verify
+// expected-error@9 {{EOF}}
#define COMM / ## *
COMM // expected-error {{pasting formed '/*', an invalid preprocessing token}}
+// Demonstrate that an invalid preprocessing token
+// doesn't swallow the rest of the file...
+#error EOF