Sign in
gnu
/
gcc
/
a25982ada523689c8745d7fb4b1b93c8f5dab2e7
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
spaceship-eq6.C
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" }