annotate gcc/testsuite/g++.dg/ext/utf16-4.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
kono
parents:
diff changeset
2 /* Expected errors for char16_t character constants. */
kono
parents:
diff changeset
3 /* { dg-do compile { target c++11 } } */
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 const static char16_t c0 = u''; /* { dg-error "empty character" } */
kono
parents:
diff changeset
7 const static char16_t c1 = u'ab'; /* { dg-warning "constant too long" } */
kono
parents:
diff changeset
8 const static char16_t c2 = u'\U00064321'; /* { dg-warning "constant too long" } */
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 const static char16_t c3 = 'a';
kono
parents:
diff changeset
11 const static char16_t c4 = U'a';
kono
parents:
diff changeset
12 const static char16_t c5 = U'\u2029';
kono
parents:
diff changeset
13 const static char16_t c6 = U'\U00064321'; /* { dg-warning "conversion from .char32_t. to .char16_t. changes value from .410401. to .17185." } */
kono
parents:
diff changeset
14 const static char16_t c7 = L'a';
kono
parents:
diff changeset
15 const static char16_t c8 = L'\u2029';
kono
parents:
diff changeset
16 const static char16_t c9 = L'\U00064321'; /* { dg-warning "conversion from .wchar_t. to .char16_t. changes value from .410401. to .17185." "" { target { 4byte_wchar_t } } } */
kono
parents:
diff changeset
17 /* { dg-warning "constant too long" "" { target { ! 4byte_wchar_t } } .-1 } */
kono
parents:
diff changeset
18 int main () {}