☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
spaceship-eq7.C
☽
☼
gcc/testsuite/g++.dg/cpp2a/spaceship-eq7.C
code
plain
raw
1
// { dg-do compile { target c++20 } }
2
3
union A
4
{
5
int i;
6
bool operator==(const A&) const = default; // { dg-message "union" }
7
};
8
9
A a { 42 };
10
bool b = a == a; // { dg-error "deleted" }