blob: f639d657b393f9128456afe1810b73b37b4ddb42 [file] [log] [blame]
// P1949R7
// { dg-do compile { target c++11 } }
// { dg-options "-pedantic-errors" }
constexpr int À = 1; // U+00C0
constexpr int À = 2; // U+0041 U+0300 { dg-warning "is not in NFC" "" { target { ! c++23 } } }
// { dg-error "is not in NFC" "" { target c++23 } .-1 }
constexpr int gv1 = \u00c0;
constexpr int gv2 = A\u0300; // { dg-warning "is not in NFC" "" { target { ! c++23 } } }
// { dg-error "is not in NFC" "" { target c++23 } .-1 }
static_assert(gv1 == 1, "");
static_assert(gv2 == 2, "");