Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/spaceship-eq7.C

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" }