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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [variadic94.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++/40595
2
// { dg-options "-std=c++0x" }
3
 
4
template
5
struct S
6
{
7
    typedef int type;
8
};
9
 
10
template
11
struct Get
12
{
13
    static T get();
14
};
15
 
16
template
17
struct B
18
{
19
    template
20
        typename S::get() (Get::get() ...) )>::type
21
        f(Args&& ... a);
22
};
23
 
24
struct X
25
{
26
    bool operator()(int) const;
27
};
28
 
29
int main()
30
{
31
    B b;
32
    b.f(1);
33
}

powered by: WebSVN 2.1.0

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