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