summaryrefslogtreecommitdiff
path: root/clang/test/Lexer/pragma-mark.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Lexer/pragma-mark.c')
-rw-r--r--clang/test/Lexer/pragma-mark.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/Lexer/pragma-mark.c b/clang/test/Lexer/pragma-mark.c
new file mode 100644
index 0000000..96e8485
--- /dev/null
+++ b/clang/test/Lexer/pragma-mark.c
@@ -0,0 +1,11 @@
+// RUN: %clang_cc1 %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;
+