gcc/ChangeLog:
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1z / class-deduction36.C
blob3670ceea03a627cfec2da2aa6bbdfc620901dac6
1 // { dg-options -std=c++17 }
3 template <class T> struct A {
4   A(T&);
5   A(const A&);
6 };
8 int i;
9 A a = i;
10 A a2 = a;
12 template <class,class> struct same;
13 template <class T> struct same<T,T> {};
14 same<decltype(a),A<int>> s1;
15 same<decltype(a2),A<int>> s2;