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] - Blame information for rev 774

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

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/49251
2
// { dg-options "-std=c++0x -Wunused-parameter" }
3
 
4
struct A {};
5
template  int f(A);
6
 
7
template< int... Indices >
8
struct indices {};
9
 
10
template< class... Args >
11
void sink( Args&&... ) {}
12
 
13
template< class T, int... Indices >
14
void unpack_test( T && t, indices ) {
15
  sink( f(t)... );
16
}
17
 
18
int main() {
19
  unpack_test( A(), indices<>() );
20
}

powered by: WebSVN 2.1.0

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