aboutsummaryrefslogtreecommitdiff
path: root/test/Lexer/pragma-mark.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Lexer/pragma-mark.c')
-rw-r--r--test/Lexer/pragma-mark.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Lexer/pragma-mark.c b/test/Lexer/pragma-mark.c
new file mode 100644
index 0000000000..388fef5575
--- /dev/null
+++ b/test/Lexer/pragma-mark.c
@@ -0,0 +1,11 @@
+// RUN: clang %s -fsyntax-only -verify
+
+// Lexer diagnostics shouldn't be included in #pragma mark.
+#pragma mark Mike's world
+_Pragma("mark foo ' bar")
+
+#define X(S) _Pragma(S)
+X("mark foo ' bar")
+
+int i;
+