// Test specialization for UTF-8 literals when -fchar8_t is not enabled. // { dg-do compile } // { dg-options "-std=c++17 -fno-char8_t" } template struct ct { static constexpr int dm = 1; }; template<> struct ct<'x'> { static constexpr int dm = 2; }; static_assert(ct<'x'>::dm == 2, "Error"); static_assert(ct::dm == 2, "Error");