2010-10-06 12:57:26 +08:00
|
|
|
// 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}}
|
2010-10-09 08:27:47 +08:00
|
|
|
|
|
|
|
(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}}
|
2010-10-06 12:57:26 +08:00
|
|
|
}
|
|
|
|
|