diff options
author | Nico Weber <nicolasweber@gmx.de> | 2010-10-09 00:27:47 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2010-10-09 00:27:47 +0000 |
commit | 59705aee3fe01aa6fb6962dd11350161b47983d9 (patch) | |
tree | a40d8a839aa904d6bae8bc7636e058a9683ff098 /test/Lexer/wchar.c | |
parent | 1274ccd90aec0b205fc838c3d504821ccfb55482 (diff) | |
download | clang-59705aee3fe01aa6fb6962dd11350161b47983d9.tar.gz |
Add support for UCNs for character literals
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116129 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Lexer/wchar.c')
-rw-r--r-- | test/Lexer/wchar.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Lexer/wchar.c b/test/Lexer/wchar.c index cbc0c455f8..ac82c1f73b 100644 --- a/test/Lexer/wchar.c +++ b/test/Lexer/wchar.c @@ -2,5 +2,11 @@ void f() { (void)L"\U00010000"; // expected-warning {{character unicode escape sequence too long for its type}} + + (void)L'\U00010000'; // expected-warning {{character unicode escape sequence too long for its type}} + + (void)L'ab'; // expected-warning {{extraneous characters in wide character constant ignored}} + + (void)L'a\u1000'; // expected-warning {{extraneous characters in wide character constant ignored}} } |