☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
spaceship-synth-neg3.C
☽
☼
gcc/testsuite/g++.dg/cpp2a/spaceship-synth-neg3.C
code
plain
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;