1 // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify -x c++ %s 2 3 // This file is encoded using ISO-8859-1 4 5 int main() { 6 (void)''; // expected-warning {{illegal character encoding in character literal}} 7 (void)u''; // expected-error {{illegal character encoding in character literal}} 8 (void)U''; // expected-error {{illegal character encoding in character literal}} 9 (void)L''; // expected-error {{illegal character encoding in character literal}} 10 11 // For narrow character literals, since there is no error, make sure the 12 // encoding is correct 13 static_assert((unsigned char)'' == 0xE9, ""); // expected-warning {{illegal character encoding in character literal}} 14 static_assert('' == 0xE9E9, ""); // expected-warning {{illegal character encoding in character literal}} expected-warning {{multi-character character constant}} 15 } 16