c++: P0847R7 (deducing this) - xobj lambdas. [PR102609]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp2a / concepts-pr87441.C
blob28be9e9e0ea4a09c7f158a41da7bf050b7fa4220
1 // { dg-do compile { target c++20 } }
2 // { dg-additional-options "-fconcepts-ts" }
4 template<typename X, typename Y = X>
5 concept bool HasBinaryAdd = requires(X x, Y y)
7   {x + y} -> decltype(x + y);
8 };
10 void proc(HasBinaryAdd x, HasBinaryAdd y);