1 // RUN: %clang_cc1 -x c++ -std=c++0x -fsyntax-only -verify %s
3 // This file should be encoded using ISO-8859-1, the string literals should
4 // contain the ISO-8859-1 encoding for the code points U+00C0 U+00E9 U+00EE
8 wchar_t const *a
= L
"Àéîõü"; // expected-error {{illegal character encoding in string literal}}
10 char16_t
const *b
= u
"Àéîõü"; // expected-error {{illegal character encoding in string literal}}
11 char32_t
const *c
= U
"Àéîõü"; // expected-error {{illegal character encoding in string literal}}
12 wchar_t const *d
= LR
"(Àéîõü)"; // expected-error {{illegal character encoding in string literal}}
13 char16_t
const *e
= uR
"(Àéîõü)"; // expected-error {{illegal character encoding in string literal}}
14 char32_t
const *f
= UR
"(Àéîõü)"; // expected-error {{illegal character encoding in string literal}}
16 char const *g
= "Àéîõü"; // expected-warning {{illegal character encoding in string literal}}
17 char const *h
= u8
"Àéîõü"; // expected-error {{illegal character encoding in string literal}}
18 char const *i
= R
"(Àéîõü)"; // expected-warning {{illegal character encoding in string literal}}
22 wchar_t const *a
= L
"foo Àéîõü"; // expected-error {{illegal character encoding in string literal}}
24 char16_t
const *b
= u
"foo Àéîõü"; // expected-error {{illegal character encoding in string literal}}
25 char32_t
const *c
= U
"foo Àéîõü"; // expected-error {{illegal character encoding in string literal}}
26 wchar_t const *d
= LR
"(foo Àéîõü)"; // expected-error {{illegal character encoding in string literal}}
27 char16_t
const *e
= uR
"(foo Àéîõü)"; // expected-error {{illegal character encoding in string literal}}
28 char32_t
const *f
= UR
"(foo Àéîõü)"; // expected-error {{illegal character encoding in string literal}}
30 char const *g
= "foo Àéîõü"; // expected-warning {{illegal character encoding in string literal}}
31 char const *h
= u8
"foo Àéîõü"; // expected-error {{illegal character encoding in string literal}}
32 char const *i
= R
"(foo Àéîõü)"; // expected-warning {{illegal character encoding in string literal}}