Sign in
gnu
/
gcc
/
a25982ada523689c8745d7fb4b1b93c8f5dab2e7
/
.
/
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
();
}