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/] [named_refs.C] - Diff between revs 301 and 378

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 301 Rev 378
Line 6... Line 6...
// { dg-options "-std=c++0x" }
// { dg-options "-std=c++0x" }
 
 
template  struct sa;
template  struct sa;
template <> struct sa {};
template <> struct sa {};
 
 
struct one   {char x[1];};
struct one   {long x[1];};
struct two   {char x[2];};
struct two   {long x[2];};
 
 
struct A {};
struct A {};
 
 
one foo(const A&) {return one();}
one foo(const A&) {return one();}
two foo(A&&)      {return two();}
two foo(A&&)      {return two();}
 
 
int test1(A&& a)
int test1(A&& a)
{
{
    sa t1;
    sa t1;
    return 0;
    return 0;
}
}
 
 
int main()
int main()
{
{

powered by: WebSVN 2.1.0

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