2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / init / copy4.C
blobbfff685666a6cfe5f083cf8213910d0d846033ca
1 // 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.
5 struct QString
7     QString( const QString & );
8     QString &operator=( const QString & );
9 };
10 struct ServerSettings
12     QString user;
14 extern ServerSettings def();
15 extern void arg( const QString& a );
16 void startSession( bool b, QString s )
18     arg (b ? def().user : s);