Home
last modified time | relevance | path

Searched refs:StrongSpaceship (Results 1 – 1 of 1) sorted by relevance

/llvm-project-15.0.7/libcxx/test/std/library/description/conventions/expos.only.func/
H A Dsynth_three_way.pass.cpp64 struct StrongSpaceship { in test() struct
66 constexpr bool operator==(const StrongSpaceship&) const = default; in test()
67 …constexpr std::strong_ordering operator<=>(const StrongSpaceship& other) const { return value <=> … in test() argument
69 assert(synth_three_way(StrongSpaceship{1}, StrongSpaceship{1}) == std::strong_ordering::equal); in test()
70 … assert(synth_three_way(StrongSpaceship{2}, StrongSpaceship{1}) == std::strong_ordering::greater); in test()
71 assert(synth_three_way(StrongSpaceship{1}, StrongSpaceship{2}) == std::strong_ordering::less); in test()
72 … ASSERT_SAME_TYPE(std::strong_ordering, synth_three_way_result<StrongSpaceship, StrongSpaceship>); in test()