URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [variadic113.C] - Rev 693
Compare with Previous | Blame | View Log
// PR c++/49251
// { dg-options "-std=c++0x -Wunused-parameter" }
struct A {};
template <int> int f(A);
template< int... Indices >
struct indices {};
template< class... Args >
void sink( Args&&... ) {}
template< class T, int... Indices >
void unpack_test( T && t, indices<Indices...> ) {
sink( f<Indices>(t)... );
}
int main() {
unpack_test( A(), indices<>() );
}