* doc/invoke.texi: Document -std=c++17 and -std=gnu++17 and document
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1z / class-deduction39.C
blobf141e9bedfb88393a18c58d37a91d437dadecff7
1 // { dg-options -std=c++17 }
3 template <class T> struct A { };
5 A<int> a;
6 const A c = a;
7 volatile A v = a;
8 const volatile A cv = a;
10 template <class,class> struct same;
11 template <class T> struct same<T,T> {};
13 same<decltype(c), const A<int>> s1;
14 same<decltype(v), volatile A<int>> s2;
15 same<decltype(cv), const volatile A<int>> s3;