2 // { dg-do compile { target c++11 } }
4 extern "C" int printf(const char* ...);
8 typedef decltype(sizeof(0)) size_t;
10 template<typename _Tp, _Tp... _Idx>
11 struct integer_sequence
13 typedef _Tp value_type;
14 static constexpr size_t size() { return sizeof...(_Idx); }
17 template<size_t... _Idx>
18 using index_sequence = integer_sequence<size_t, _Idx...>;
21 void g(std::size_t a, std::size_t b, std::size_t c)
23 printf("%zu, %zu, %zu\n", a, b, c);
26 template <std::size_t... Seq>
27 void f(std::index_sequence<Seq...>)
34 f(std::index_sequence<0, 1, 2>());