aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp23/normalize7.C
blob: a1c0a2f413a0c47e1a0d14a6ae4f917e36470fa6 (plain)
1
2
3
4
5
6
7
8
9
10
// P1949R7
// { dg-do compile { target c++11 } }
// { dg-options "-pedantic-errors" }

constexpr int À = 1; // U+00C0
constexpr int= 2; // U+0041 U+0300 { dg-error "is not in NFC" }
constexpr int gv1 = \u00c0;
constexpr int gv2 = A\u0300; // { dg-error "is not in NFC" }
static_assert(gv1 == 1, "");
static_assert(gv2 == 2, "");