PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1z / class-deduction12.C
blobe858dcf8da1db0c563796dbfd75dec24086c9bb6
1 // { dg-options -std=c++17 }
3 template <class T>
4 struct A
6   template<class U, template<U u> class P>
7   A(T,U,P<42>);
8 };
10 template <int I> struct B { };
12 int i;
13 A a(&i,2,B<42>());
15 template <class,class> class same;
16 template <class T> class same<T,T> {};
17 same<decltype(a), A<int*>> s;