2 // Test class non-type template parameters for literal operator templates.
3 // Validate rejection of class template parameter packs.
4 // { dg-do compile { target c++20 } }
7 using size_t = decltype(sizeof(int));
10 template <typename CharT, std::size_t N>
12 constexpr static std::size_t length = N;
13 constexpr fixed_string(...) { }
14 // auto operator<=> (const fixed_string&) = default;
16 template <typename CharT, std::size_t N>
17 fixed_string(const CharT (&str)[N]) -> fixed_string<CharT, N>;
19 template <fixed_string...>
20 int operator"" _udl(); // { dg-error "5:literal operator template .int operator\"\"_udl\\(\\). has invalid parameter list" }