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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [variadic101.C] - Blame information for rev 307

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

Line No. Rev Author Line
1 301 jeremybenn
// PR c++/43382
2
// { dg-options "-std=c++0x" }
3
 
4
template
5
struct Container
6
{ T f() const; };
7
 
8
template
9
T deref(const T& t)
10
{ return t; }
11
 
12
 
13
template 
14
auto
15
deref(const T& u, int r, Args... args)
16
-> decltype(deref(u.f(), args...))
17
{ return deref(u.f(), args...); }
18
 
19
int main(void)
20
{
21
    Container> v;
22
    deref(v,1,2);
23
}

powered by: WebSVN 2.1.0

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