blob: 4765601f2390797420f44ecfdf613eb83df8a731 [file] [log] [blame]
// PR c++/94583
// { dg-do compile { target c++20 } }
namespace std { struct strong_ordering { }; }
bool operator==(const struct Q&, const struct Q&);
struct Q {
// { dg-error "defaulted after its first declaration" "" { target *-*-* } .+1 }
friend std::strong_ordering operator<=>(const Q&, const Q&) = default;
};
bool b = Q() == Q();