Debian Codegraph @

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

raw
1 // P1949R7
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-pedantic-errors" }
4
5 constexpr int À = 1; // U+00C0
6 constexpr int À = 2; // U+0041 U+0300 { dg-error "is not in NFC" }
7 constexpr int gv1 = \u00c0;
8 constexpr int gv2 = A\u0300; // { dg-error "is not in NFC" }
9 static_assert(gv1 == 1, "");
10 static_assert(gv2 == 2, "");