1 // { dg-do run { target c++11 } }
2 extern "C" void abort();
4 template<typename T, T... Values>
5 void f(T* expected_values, int n)
7 if (sizeof...(Values) != n)
10 T values[] = { Values... };
11 for (int i = 0; i < n; ++i)
12 if (values[i] != expected_values[i])
18 int test_arr1[3] = { 1, 2, 3 };
19 f<int, 1, 2, 3>(test_arr1, 3);