Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/variadic183.C

raw
1 // PR c++/105956
2 // { dg-do compile { target c++11 } }
3
4 template<int...> struct list;
5
6 template<int... Ns> struct impl {
7 static const int idx = 0;
8 using type = list<(idx + Ns)...>;
9
10 static constexpr const int* a[2] = {(Ns, &idx)...};
11 static_assert(a[0] == &idx && a[1] == &idx, "");
12 };
13
14 template struct impl<0, 1>;