Debian Codegraph @

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

raw
1 // PR c++/49251
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-Wunused-parameter" }
4
5 struct A {};
6 template <int> int f(A);
7
8 template< int... Indices >
9 struct indices {};
10
11 template< class... Args >
12 void sink( Args&&... ) {}
13
14 template< class T, int... Indices >
15 void unpack_test( T && t, indices<Indices...> ) {
16 sink( f<Indices>(t)... );
17 }
18
19 int main() {
20 unpack_test( A(), indices<>() );
21 }