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