blob: 265d075ab18d38f8fe46b40f521320b471b100c7 [file] [log] [blame]
// { dg-do compile { target c++20 } }
struct A
{
union { int i; } // { dg-message "union" }
bool operator==(const A&) const = default; // { dg-message "deleted" }
};
A a { 42 };
bool b = a == a; // { dg-error "deleted" }