Debian Codegraph @

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

raw
1 // PR c++/94583
2 // { dg-do compile { target c++20 } }
3
4 namespace std { struct strong_ordering { }; }
5
6 struct Q {
7 friend std::strong_ordering operator<=>(const Q&, const Q&) = default;
8 };
9 bool operator==(const Q&, const Q&) noexcept;