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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [init/] [copy4.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// PR c++/9342
2
// We were failing to wrap def().user in a TARGET_EXPR, so copying it
3
// into the reference temp used a bitwise copy.
4
 
5
struct QString
6
{
7
    QString( const QString & );
8
    QString &operator=( const QString & );
9
};
10
struct ServerSettings
11
{
12
    QString user;
13
};
14
extern ServerSettings def();
15
extern void arg( const QString& a );
16
void startSession( bool b, QString s )
17
{
18
    arg (b ? def().user : s);
19
}

powered by: WebSVN 2.1.0

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