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