☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
var-templ25.C
☽
☼
gcc/testsuite/g++.dg/cpp1y/var-templ25.C
code
plain
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, "");