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

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