OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [rv-return.C] - Blame information for rev 384

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// PR c++/41815
2
// { dg-options -std=c++0x }
3
 
4
template struct same_type;
5
template struct same_type {};
6
 
7
int const f() { return 0; }
8
 
9
int &&r = f(); // binding "int&&" to "int" should succeed
10
same_type s1;
11
same_type s2;
12
 
13
template 
14
T const g() { return 0; }
15
 
16
int &&r2 = g();
17
same_type()), int const> s3;
18
same_type()), int> s4;

powered by: WebSVN 2.1.0

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