blob: 5ce49490fe5af39342399deab7851f05217de700 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// PR c++/100367
// { dg-do compile { target c++20 } }
#include <compare>
struct iter {
bool current;
iter(iter &);
};
constexpr bool operator==(const iter &, const iter &y) {
return y.current;
}
void lexicographical_compare_three_way(iter a) {
(a == a) <=> true;
}
|