Debian Codegraph @

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

raw
1 // PR c++/94462
2 // { dg-do compile { target c++20 } }
3
4 namespace std {
5 struct strong_ordering { };
6 }
7
8 namespace Synth {
9 struct B {
10 friend std::strong_ordering operator<=>(B, B) = default;
11 };
12
13 struct C {
14 friend bool operator==(C, C);
15 };
16 }
17