Debian Codegraph @

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

raw
1 // Test that C++20 overload changes don't break sloppy code.
2
3 struct C {
4 bool operator==(const C&);
5 bool operator!=(const C&);
6 };
7
8 int main() {
9 C c1, c2;
10 (void)(c1 == c2);
11 (void)(c1 != c2);
12 }