Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp
/
spaceship-1.C
blob: 241b277c05bb0b8c6efdbde08390222318c95f70 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++17_down } }
// { dg-options "-Wno-pointer-arith" }
struct
X
{};
bool
operator
<=
(
X
,
X
);
template
<
bool
(
X
,
X
)>
struct
Y
{};
Y
<&
operator
<=>
y
;
bool
foo
(
bool
(*
fn
)
(
X
,
X
),
int
n
)
{
return
n
+&
operator
<=>
fn
;
}