blob: b7ef79d68a0c7926d5b46942b3ff9945723d0cd6 [file] [log] [blame]
// PR c++/88095
// Test class non-type template parameters for literal operator templates.
// Validate basic support.
// { dg-do compile { target c++20 } }
struct literal_class {
constexpr literal_class(...) { }
// auto operator<=> (const fixed_string&) = default;
};
template <literal_class>
constexpr int operator"" _udl() {
return 1;
}
static_assert("test"_udl == 1);