wchar.c revision 5cee1195584fa8672253139c86e922daeda69b9e
1// RUN: %clang_cc1 -fsyntax-only -fshort-wchar -verify %s
2
3void f() {
4  (void)L"\U00010000";  // expected-warning {{character unicode escape sequence too long for its type}}
5
6  (void)L'\U00010000';  // expected-warning {{character unicode escape sequence too long for its 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