]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/g++.dg/cpp1z/class-deduction36.C
invoke.texi: Document -std=c++17 and -std=gnu++17 and document c++1z and gnu++1z...
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / cpp1z / class-deduction36.C
CommitLineData
7b936140 1// { dg-options -std=c++17 }
fb5ce608
JM
2
3template <class T> struct A {
4 A(T&);
5 A(const A&);
6};
7
8int i;
9A a = i;
10A a2 = a;
11
12template <class,class> struct same;
13template <class T> struct same<T,T> {};
14same<decltype(a),A<int>> s1;
15same<decltype(a2),A<int>> s2;