blob: b1351886176b3e35c869ff3efad4a3d78d60f793 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// { 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" }
|