☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
spaceship-sfinae1.C
☽
☼
gcc/testsuite/g++.dg/cpp2a/spaceship-sfinae1.C
code
plain
raw
1
// { dg-do compile { target c++20 } }
2
3
// missing #include <compare>
4
template <class T, T x = (T() <=> T()) == 0>
5
void f(T);
6
constexpr int f(...) { return 42; }
7
constexpr int i = f(24);