/cp
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / var-templ25.C
blob8253eac5cde83c406d05fedb1512c423d5205932
1 // { dg-do compile { target c++14 } }
3 using fl = float;
5 template<class T> const int V = 0;
6 template<> const int V<fl> = 42;
8 static_assert(V<float> == 42, "");