diff options
author | Jordan Rose <jordan_rose@apple.com> | 2013-01-31 19:48:48 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2013-01-31 19:48:48 +0000 |
commit | cc538345be8b30e4f47421a282ba254576e5b88b (patch) | |
tree | 0c7609cbdc4a09e8d48eb416684b9b39df84f386 /clang/test/Lexer/utf8-invalid.c | |
parent | b9baa448b95e71252fa67250b7dfc0ba73df4db2 (diff) | |
download | bcm5719-llvm-cc538345be8b30e4f47421a282ba254576e5b88b.tar.gz bcm5719-llvm-cc538345be8b30e4f47421a282ba254576e5b88b.zip |
Lexer: Don't warn about Unicode in preprocessor directives.
This allows people to use Unicode in their #pragma mark and in macros
that exist only to be string-ized.
<rdar://problem/13107323&13121362>
llvm-svn: 174081
Diffstat (limited to 'clang/test/Lexer/utf8-invalid.c')
-rw-r--r-- | clang/test/Lexer/utf8-invalid.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Lexer/utf8-invalid.c b/clang/test/Lexer/utf8-invalid.c index a387ff776f4..2657b54c374 100644 --- a/clang/test/Lexer/utf8-invalid.c +++ b/clang/test/Lexer/utf8-invalid.c @@ -9,3 +9,7 @@ extern int ‚x; // expected-error{{source file is not valid UTF-8}} // Don't warn about bad UTF-8 in raw lexing mode. extern int ‚x; #endif + +// Don't warn about bad UTF-8 in preprocessor directives. +#define x82 ‚ +#pragma mark ‚ |