aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/spaceship-eq6.C
blob: 265d075ab18d38f8fe46b40f521320b471b100c7 (plain)
1
2
3
4
5
6
7
8
9
10
// { 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" }