Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/spaceship-synth-neg3.C

raw
1 // PR c++/92496
2 // { dg-do compile { target c++20 } }
3
4 template<auto V>
5 struct A {};
6
7 struct B {
8 constexpr auto operator<=>(const B&) const = default; // { dg-error "strong_ordering" }
9 int value;
10 };
11
12 A<B{}> t;