blob: d0d68c7fa6fe24e7a0bc9a5c98afe6cbdeefe59a [file] [log] [blame]
// PR c++/94907
// { dg-do compile { target c++2a } }
namespace std { struct strong_ordering { }; }
struct E;
struct D {
virtual std::strong_ordering operator<=>(const struct E&) const = 0;
};
struct E : D {
std::strong_ordering operator<=>(const E&) const override = default;
};