aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Lexer/wchar.c
blob: e6b3467473c7f6933d96014628a8ca81008d2359 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %clang_cc1 -fsyntax-only -fwchar-type=short -fno-signed-wchar -verify %s

void f(void) {
  (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}}
}