OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [variadic116.C] - Blame information for rev 707

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

Line No. Rev Author Line
1 693 jeremybenn
// Origin: PR c++/48320
2
// { dg-options -std=c++0x }
3
 
4
template
5
struct tuple
6
{
7
    typedef int type;
8
};
9
 
10
template
11
struct indices
12
{
13
};
14
 
15
template
16
struct tuple_element
17
{
18
    typedef Tuple type;
19
};
20
 
21
template
22
         int... Indices,
23
         class Result = tuple::type...> >
24
Result
25
f(Tuple&&, indices);
26
 
27
 
28
void
29
foo()
30
{
31
    f(tuple (), indices<2, 1, 0> ());
32
}

powered by: WebSVN 2.1.0

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