Sign in
gnu
/
gcc
/
5e9c4ed903c39f82f28362d9411d4dbc491264ec
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
spaceship-sfinae1.C
blob: eb199186153afc22c4d894c653779be5277ded57 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++20 } }
// missing #include <compare>
template
<
class
T
,
T x
=
(
T
()
<=>
T
())
==
0
>
void
f
(
T
);
constexpr
int
f
(...)
{
return
42
;
}
constexpr
int
i
=
f
(
24
);