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++.eh/] [crash2.C] - Rev 149

Go to most recent revision | Compare with Previous | Blame | View Log

// { 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 ); } 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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