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

Show entire file | Details | Blame | View Log

Rev 301 Rev 378
Line 10... Line 10...
// { 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 os
struct os
{
{
    one operator<<(int);
    one operator<<(int);
};
};
Line 28... Line 28...
two operator<<(os&, const A&);
two operator<<(os&, const A&);
 
 
void test()
void test()
{
{
    os o;
    os o;
    sa t1;  // Calls os::operator<<(int)
    sa t1;  // Calls os::operator<<(int)
                                 // Would be ambiguous if the implicit object parameter
                                 // Would be ambiguous if the implicit object parameter
                                 // was an rvalue reference.
                                 // was an rvalue reference.
}
}
 
 
int main()
int main()

powered by: WebSVN 2.1.0

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