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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [overload31.C] - Diff between revs 154 and 816

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 154 Rev 816
// { dg-do assemble  }
// { dg-do assemble  }
// PRMS Id: 6568
// PRMS Id: 6568
// Bug: g++ complains about the ambiguous conversion to bool even though
// Bug: g++ complains about the ambiguous conversion to bool even though
// we wouldn't end up using it anyway.
// we wouldn't end up using it anyway.
class AString
class AString
{
{
public:
public:
    AString (unsigned len);
    AString (unsigned len);
    operator char *() const;
    operator char *() const;
    operator char const *() const;
    operator char const *() const;
};
};
void
void
foo(unsigned t, AString const & handle)
foo(unsigned t, AString const & handle)
{
{
}
}
void
void
foo(AString const & handle, bool includeSpecials)
foo(AString const & handle, bool includeSpecials)
{
{
    unsigned t;
    unsigned t;
    foo(t, handle);
    foo(t, handle);
}
}
 
 

powered by: WebSVN 2.1.0

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