blob: a08ba0de69ce67e46d31fa50718c70cf9729db0c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// 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();
}
|