blob: 762cfb4d39621afb9d6cbfe481361183866efb63 [file] [log] [blame]
// PR c++/84494
// { dg-do compile { target c++14 } }
struct X {
constexpr X() = default;
constexpr X(int x) : m_value(x) {}
constexpr X& operator=(const X &o) = default;
int m_value {};
};
static_assert((X() = X(10)).m_value == 10, "");