summaryrefslogtreecommitdiffstats
path: root/test/Lexer/wchar.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Lexer/wchar.c')
-rw-r--r--test/Lexer/wchar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Lexer/wchar.c b/test/Lexer/wchar.c
index 648a38e..de00c02 100644
--- a/test/Lexer/wchar.c
+++ b/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}}
OpenPOWER on IntegriCloud