]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/c2x-utf8char-2.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / c2x-utf8char-2.c
1 /* Test C2x UTF-8 characters. Character values not affected by
2 different execution character set. */
3 /* { dg-do compile } */
4 /* { dg-require-iconv "IBM1047" } */
5 /* { dg-options "-std=c2x -pedantic-errors -fexec-charset=IBM1047" } */
6
7 _Static_assert (u8'a' == 97);
8 _Static_assert (u8'a' != (unsigned char) 'a');