diff options
author | Seth Cantrell <seth.cantrell@gmail.com> | 2012-01-18 12:27:10 +0000 |
---|---|---|
committer | Seth Cantrell <seth.cantrell@gmail.com> | 2012-01-18 12:27:10 +0000 |
commit | 6255c257e95348f4c03de9ed9657f57b9a68316f (patch) | |
tree | 86044e7ba40fd74a726989b3452c7a0e4597ae75 /clang/test/Lexer/wchar.c | |
parent | 9c2d6f02798b1061eabfdd2aefdcbc2ee062588f (diff) | |
download | bcm5719-llvm-6255c257e95348f4c03de9ed9657f57b9a68316f.tar.gz bcm5719-llvm-6255c257e95348f4c03de9ed9657f57b9a68316f.zip |
Add and update tests for character literals
llvm-svn: 148392
Diffstat (limited to 'clang/test/Lexer/wchar.c')
-rw-r--r-- | clang/test/Lexer/wchar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Lexer/wchar.c b/clang/test/Lexer/wchar.c index 648a38ef3f9..de00c02f131 100644 --- a/clang/test/Lexer/wchar.c +++ b/clang/test/Lexer/wchar.c @@ -1,9 +1,9 @@ // RUN: %clang_cc1 -fsyntax-only -fshort-wchar -verify %s void f() { - (void)L"\U00010000"; // expected-warning {{character unicode escape sequence too long for its type}} + (void)L"\U00010000"; // unicode escape produces UTF-16 sequence, so no warning - (void)L'\U00010000'; // expected-warning {{character unicode escape sequence too long for its type}} + (void)L'\U00010000'; // expected-error {{character too large for enclosing character literal type}} (void)L'ab'; // expected-warning {{extraneous characters in character constant ignored}} |