* doc/invoke.texi: Document -std=c++17 and -std=gnu++17 and document
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1z / class-deduction42.C
blob4623e742fb8212e7a1d19788943563e712186e02
1 // { dg-options -std=c++17 }
3 #include <initializer_list>
5 template <class,class> struct same;
6 template <class T> struct same<T,T> { };
8 template <class T>
9 struct A
11   A(const A&);
12   A(std::initializer_list<T>);
15 A a { 1 };
16 A b { a };
18 same<decltype (a), decltype (b)> s;