diff options
author | Chris Lattner <sabre@nondot.org> | 2007-12-19 19:38:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-12-19 19:38:36 +0000 |
commit | 2243449253475574fc6f14986ff8f7fce5d46799 (patch) | |
tree | b50a91f1f89144e9c0a812e2888a0aadf6bae6f5 /test/Lexer/pragma-mark.c | |
parent | 63ea863d4715249551ab10ae207386ddc383419e (diff) |
Add support for #pragma mark, which shouldn't warn about bogus tokens.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45212 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Lexer/pragma-mark.c')
-rw-r--r-- | test/Lexer/pragma-mark.c | 11 |
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; + |