PR c++/56973, DR 696 - capture constant variables only as needed.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / var-templ17.C
blobc6d97ebb368e6bba635c00aab85325357b15ff7d
1 // DR 1727: a specialization doesn't need to have the same type
2 // { dg-do compile { target c++14 } }
4 template <class T> T t = 42;
5 template<> void* t<int> = 0;
7 template<class T, class U> struct same;
8 template<class T> struct same<T,T> {};
9 same<void*,decltype(t<int>)> s;