Debian Codegraph @

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

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);