Sign in
gnu
/
gcc
/
1ba7adabf29eb671e418692fad076ea6edd08e3d
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
spaceship-err2.C
blob: 56ab343c9a7aa00154e89fd4d0e46ec7074fb648 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++20 } }
#include
<compare>
template
<
class
T
,
T x
=
(
T
()
<=>
T
())>
// { dg-error "31:0 <=> 0" }
void
f
(
T
);
//constexpr int f(...) { return 42; }
constexpr
int
i
=
f
(
24
);
// { dg-error "no match" }