☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
var-templ-array1.C
☽
☼
gcc/testsuite/g++.dg/cpp1y/var-templ-array1.C
code
plain
raw
1
// PR c++/113638
2
// { dg-do compile { target c++14 } }
3
4
template<int ...Is>
5
constexpr int my_array[]{Is...};
6
constexpr auto t1 = my_array<2>;
7
static_assert(sizeof(my_array<1>) == sizeof(int) * 1, "");