Debian Codegraph @

gcc/testsuite/g++.dg/cpp23/charset1.C

raw
1 // P2314R4
2 // { dg-do compile { target c++23 } }
3 // { dg-options "-finput-charset=UTF-8 -fexec-charset=UTF-8" }
4
5 #define S(x) # x
6 const char s1[] = S(Köppe); // "Köppe"
7 const char s2[] = S(K\u00f6ppe); // "Köppe"
8
9 static_assert (sizeof (s1) == 7);
10 static_assert (sizeof (s2) == 7);