(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
cpp2a/
spaceship-synth-neg3.C
// PR c++/92496
// { dg-do compile { target c++20 } }

template<auto V>
struct A {};

struct B {
    constexpr auto operator<=>(const B&) const = default; // { dg-error "" }
    int value;
};

A<B{}> t;