blob: 8112eaa4f80a4aebc86090c11a3e4004d45cbd04 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// { dg-do compile { target c++2a } }
union A
{
int i;
bool operator==(const A&) const = default; // { dg-message "union" }
};
A a { 42 };
bool b = a == a; // { dg-error "deleted" }
|