1 // { dg-do link { target c++17_only } }
2 // { dg-options "-fconcepts-ts" }
4 // Check equivalence of short- and longhand declarations.
7 concept bool C() { return __is_class(T); }
10 concept bool D() { return __is_empty(T); }
15 template<C T> void f2(T x);
17 template<C T> void f4(T x) requires D<T>();
18 template<C T> void f5(T x) requires D<T>();
19 template<C T> void f6(T x) requires D<T>();
30 template<typename T> requires C<T>() void f1(T x) { }
31 template<typename T> requires C<T>() void f2(T x) { }
32 template<C T> void f3(T x) { }
33 template<typename T> requires C<T>() void f4(T x) requires D<T>() { }
34 template<typename T> requires C<T>() and D<T>() void f5(T x) { }
35 template<typename T> void f6(T x) requires C<T>() and D<T>() { }