Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/var-templ-array1.C

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, "");