blob: 67c57099f741032ba593008b5a4e712d4bad89cc [file] [log] [blame]
// Example from P0732
// { dg-do compile { target c++20 } }
template<class T, T p> class X {
/* ... */
};
struct A {
constexpr A(const char*) {}
// auto operator<=> (const A&) = default;
};
X<A, "Pyrophoricity"> x3; // OK: string literal is a constructor argument to A