// { dg-do compile { target c++20 } }
union A
{
  int i;
  bool operator==(const A&) const = default; // { dg-message "union" }
};
A a { 42 };
bool b = a == a;		// { dg-error "deleted" }
// { dg-do compile { target c++20 } }
union A
{
  int i;
  bool operator==(const A&) const = default; // { dg-message "union" }
};
A a { 42 };
bool b = a == a;		// { dg-error "deleted" }