Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/spaceship-constexpr3.C

raw
1 // PR c++/96497
2 // { dg-do compile { target c++20 } }
3
4 #include <compare>
5
6 static_assert(std::partial_ordering(std::strong_ordering::less) < 0);
7 static_assert(std::partial_ordering(1 <=> 2) < 0);