1 // { dg-options "-std=c++17 -fconcepts" }
3 // Check argument deduction constraints.
4 // TODO: We shoul have more of these...
7 concept bool C1 = sizeof(T) == 0;
9 template<typename T, typename U>
10 concept bool C2 = __is_same_as(T, U);
16 return requires (T t) { { t } -> C1; };
22 return requires (T t) { { t } -> C2<void>; };
30 f1(0); // { dg-error "cannot call" }
31 f2(0); // { dg-error "cannot call" }