wchar.c revision 7748cbc97ff9c6c3940549d30965a10b47a45ee8
1// RUN: %clang_cc1 -fsyntax-only -fshort-wchar -verify %s
2
3void f() {
4  (void)L"\U00010000"; // unicode escape produces UTF-16 sequence, so no warning
5
6  (void)L'\U00010000'; // expected-error {{character too large for enclosing character literal type}}
7
8  (void)L'ab';  // expected-warning {{extraneous characters in character constant ignored}}
9
10  (void)L'a\u1000';  // expected-warning {{extraneous characters in character constant ignored}}
11}
12
13