1 // { dg-do run { target c++11 } }
5 extern "C" void abort ();
7 template<int M, int N> struct pair
10 pair () : i (M), j (N) {}
13 template<int... M> struct S
15 template<int... N> static int *foo ()
18 static int x[] = { (M + N)..., -1 };
20 static int x[1 + sizeof... N] = { (M + N)..., -1 };
26 template<typename... M> struct R
28 template<typename... N> static int *foo ()
31 static int x[] = { (sizeof(M) + sizeof(N))..., -1 };
33 static int x[1 + sizeof... N] = { (sizeof(M) + sizeof(N))..., -1 };
41 return S<0, 1, 2>::foo<0, 1, 2> ();
46 return R<char, short, int>::foo<float, double, long> ();
53 if (p[0] != 0 || p[1] != 2 || p[2] != 4 || p[3] != -1)