Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/var-templ25.C

raw
1 // { dg-do compile { target c++14 } }
2
3 using fl = float;
4
5 template<class T> const int V = 0;
6 template<> const int V<fl> = 42;
7
8 static_assert(V<float> == 42, "");