blob: 4ecaee429f7391e4fad44a84fb6e5134e2394b1e [file] [log] [blame]
// RUN: %clang_cc1 -fsyntax-only -fwchar-type=short -fno-signed-wchar -verify %s
void f() {
(void)L"\U00010000"; // unicode escape produces UTF-16 sequence, so no warning
(void)L'ab'; // expected-error {{wide character literals may not contain multiple characters}}
(void)L'a\u1000'; // expected-error {{wide character literals may not contain multiple characters}}
}