blob: 195b8623ce162ef6e3eac40c31fdec2c9a356a27 [file] [log] [blame]
// { dg-do assemble }
// { dg-options "-O" }
// Origin: Thomas Kunert <kunert@physik.tu-dresden.de>
struct C {
~C();
};
struct R {
bool empty() const;
C m_;
};
struct R1 {
R1( const R& a );
~R1 ();
C m_;
};
R1 get_empty();
R1::R1( const R& a ) :
m_( a.empty() ? get_empty().m_ : C() )
{}
void qnorm( const R & r)
{ R1 n( r ); }