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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [init/] [copy4.C] - Diff between revs 149 and 154

Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
// PR c++/9342
// PR c++/9342
// We were failing to wrap def().user in a TARGET_EXPR, so copying it
// We were failing to wrap def().user in a TARGET_EXPR, so copying it
// into the reference temp used a bitwise copy.
// into the reference temp used a bitwise copy.
struct QString
struct QString
{
{
    QString( const QString & );
    QString( const QString & );
    QString &operator=( const QString & );
    QString &operator=( const QString & );
};
};
struct ServerSettings
struct ServerSettings
{
{
    QString user;
    QString user;
};
};
extern ServerSettings def();
extern ServerSettings def();
extern void arg( const QString& a );
extern void arg( const QString& a );
void startSession( bool b, QString s )
void startSession( bool b, QString s )
{
{
    arg (b ? def().user : s);
    arg (b ? def().user : s);
}
}
 
 

powered by: WebSVN 2.1.0

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