OpenCores
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 701

Go to most recent revision | 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<>() );
}

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.