Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
spaceship-eq7.C
blob: b1351886176b3e35c869ff3efad4a3d78d60f793 [
file
] [
log
] [
blame
]
// { 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" }