Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
concepts-pr87441.C
blob: 28be9e9e0ea4a09c7f158a41da7bf050b7fa4220 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++20 } }
// { dg-additional-options "-fconcepts-ts" }
template
<
typename
X
,
typename
Y
=
X
>
concept
bool
HasBinaryAdd
=
requires
(
X x
,
Y y
)
{
{
x
+
y
}
->
decltype
(
x
+
y
);
};
void
proc
(
HasBinaryAdd
x
,
HasBinaryAdd
y
);