aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/spaceship-synth-neg3.C
blob: aaa0264e7b34362b0d1255725510ad77206d440a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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 "strong_ordering" }
    int value;
};

A<B{}> t;