1 // { dg-options "-std=c++17 -fconcepts" }
4 concept bool Type() { return true; }
6 template<typename T, typename U>
7 concept bool Same() { return __is_same_as(T, U); }
9 template<typename T, typename U>
10 concept bool C1() { return true; }
12 template<typename T, typename... Args>
13 concept bool C2() { return true; }
15 template<Same<int> T> struct S1 { };
16 template<typename T, Same<T> U> struct S2 { };
18 void f(Same<int> q) { }
19 void g(Type a, Same<decltype(a)> b) { }
21 void h0(Same<int>* a) { }
22 void h1(C1<int>* a) { }
23 void h2(C2<char, short, int, long>* a) { }