blob: 825bd7032a79aee6ca35b4ece1f30c2666b8ba05 [file] [log] [blame]
// { dg-do compile { target c++20 } }
namespace std
{
int strong_ordering;
struct partial_ordering {
static int equivalent ();
};
}
auto a = 1 <=> 2; // { dg-error "'std::strong_ordering' is not a type" }
// { dg-message "forming type of 'operator<=>'" "" { target *-*-* } .-1 }
auto b = 3.0 <=> 4.0; // { dg-error "'std::partial_ordering::equivalent\\(\\)' is not a static data member" }
// { dg-message "determining value of 'operator<=>'" "" { target *-*-* } .-1 }