blob: 2610864f29cb0e5893e8c43ad5af43af1e47e404 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// PR c++/93650
// { dg-do compile { target c++20 } }
namespace std {
using type = enum _Ord { less };
class strong_ordering {
type _M_value;
constexpr strong_ordering(_Ord) : _M_value() {}
static const strong_ordering less;
static strong_ordering equal;
static strong_ordering greater;
} constexpr strong_ordering::less(_Ord::less);
auto v = 1 <=> 2;
}
|