1 // { dg-do compile { target c++20 } }
6 struct partial_ordering {
7 static int equivalent ();
11 auto a = 1 <=> 2; // { dg-error "'std::strong_ordering' is not a type" }
12 // { dg-message "forming type of 'operator<=>'" "" { target *-*-* } .-1 }
13 auto b = 3.0 <=> 4.0; // { dg-error "'std::partial_ordering::equivalent\\(\\)' is not a static data member" }
14 // { dg-message "determining value of 'operator<=>'" "" { target *-*-* } .-1 }