1// { dg-do run { target c++11 } }
2extern "C" void abort();
3
4template<typename T, T... Values>
5void f(T* expected_values, int n)
6{
7  if (sizeof...(Values) != n)
8    abort ();
9
10  T values[] = { Values... };
11  for (int i = 0; i < n; ++i)
12    if (values[i] != expected_values[i])
13      abort();
14}
15
16int main()
17{
18  int test_arr1[3] = { 1, 2, 3 };
19  f<int, 1, 2, 3>(test_arr1, 3);
20
21  return 0;
22}
23