aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/c2x-utf8char-2.c
blob: 4e6a2f6955f8b9fcf8d5a4a4861da482920e4c27 (plain)
1
2
3
4
5
6
7
8
/* Test C2x UTF-8 characters.  Character values not affected by
   different execution character set.  */
/* { dg-do compile } */
/* { dg-require-iconv "IBM1047" } */
/* { dg-options "-std=c2x -pedantic-errors -fexec-charset=IBM1047" } */

_Static_assert (u8'a' == 97);
_Static_assert (u8'a' != (unsigned char) 'a');