Skip to content

Commit

Permalink
Do not annotate defaulted spaceship opperators
Browse files Browse the repository at this point in the history
  • Loading branch information
miscco committed Jan 25, 2023
1 parent 85abfd2 commit b373714
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .upstream-tests/test/support/compare_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -311,21 +311,21 @@ struct no_ge_not_totally_ordered_with {

#ifndef TEST_HAS_NO_SPACESHIP_OPERATOR
struct partial_ordering_totally_ordered_with {
__host__ __device__ auto operator<=>(partial_ordering_totally_ordered_with const&) const noexcept = default;
auto operator<=>(partial_ordering_totally_ordered_with const&) const noexcept = default;
__host__ __device__ std::partial_ordering operator<=>(totally_ordered_with_others const&) const noexcept;

__host__ __device__ operator totally_ordered_with_others() const;
};

struct weak_ordering_totally_ordered_with {
__host__ __device__ auto operator<=>(weak_ordering_totally_ordered_with const&) const noexcept = default;
auto operator<=>(weak_ordering_totally_ordered_with const&) const noexcept = default;
__host__ __device__ std::weak_ordering operator<=>(totally_ordered_with_others const&) const noexcept;

__host__ __device__ operator totally_ordered_with_others() const;
};

struct strong_ordering_totally_ordered_with {
__host__ __device__ auto operator<=>(strong_ordering_totally_ordered_with const&) const noexcept = default;
auto operator<=>(strong_ordering_totally_ordered_with const&) const noexcept = default;
__host__ __device__ std::strong_ordering operator<=>(totally_ordered_with_others const&) const noexcept;

__host__ __device__ operator totally_ordered_with_others() const;
Expand Down

0 comments on commit b373714

Please sign in to comment.