Sign in
gnu
/
gcc
/
a8404c07e7fca388c02c39077865f7d5fa928430
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
spaceship-union1.C
blob: a08ba0de69ce67e46d31fa50718c70cf9729db0c [
file
] [
log
] [
blame
]
// P2002: Allow default comparison of unions with no members.
// { dg-do compile { target c++20 } }
union
A
{
bool
operator
==(
const
A
&)
const
=
default
;
};
int
main
()
{
A
()
==
A
();
}